summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/shows/recent_episodes.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes/shows/recent_episodes.html')
-rw-r--r--layouts/shortcodes/shows/recent_episodes.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/shortcodes/shows/recent_episodes.html b/layouts/shortcodes/shows/recent_episodes.html
new file mode 100644
index 0000000..fc01a57
--- /dev/null
+++ b/layouts/shortcodes/shows/recent_episodes.html
@@ -0,0 +1,6 @@
+<ul>
+ {{ range first 5 (where (where .Site.RegularPages "Section" "shows") ".Parent.Title" (.Get 0)) }}
+ <li>{{ .Date.Format "2006-01-01" }} - {{ .Title }}. <a href="https://www.youtube.com/watch?v={{ .Params.VideoId }}">Video</a> | <a href="{{ .RelPermalink }}">Post</a></li>
+ {{ end }}
+</ul>
+