summaryrefslogtreecommitdiff
path: root/layouts/_default/shows.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/shows.html')
-rw-r--r--layouts/_default/shows.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/layouts/_default/shows.html b/layouts/_default/shows.html
new file mode 100644
index 0000000..404ebc3
--- /dev/null
+++ b/layouts/_default/shows.html
@@ -0,0 +1,22 @@
+{{ define "main" }}
+ {{ if .Sections }}
+ <h2>YouTube Shows</h2>
+ <p>I make and host YouTube shows about programming and Linux.</p>
+ <ul>
+ {{ range sort .Sections "Title" "asc" }}
+ <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
+ {{ end }}
+ </ul>
+ {{ else }}
+ <h2>{{ .Title }}</h2>
+ <p>{{ .Params.Summary }}</p>
+ <p>The YouTube playlist can be found <a href="https://www.youtube.com/playlist?list={{ .Params.PlaylistId }}">here</a>.</p>
+ <p>Subscribe to the show posts by using this <a href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}">RSS link</a>.</p>
+ <h3>Episodes</h3>
+ <ul>
+ {{ range (where .Data.Pages "Type" "shows") }}
+ <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>
+ {{ end }}
+{{ end }}