summaryrefslogtreecommitdiff
path: root/layouts/_default/shows.html
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2019-04-29 00:13:49 +0100
committerDavid T. Sadler <davidtsadler@googlemail.com>2019-04-29 00:13:49 +0100
commit49f746f1ee9205c4028bdc8f18aa888367eb3ddb (patch)
tree8d8b86c72e335a0ebea08e8ed29fb5c7ab439b25 /layouts/_default/shows.html
parent6de514f5ff850ab90495e3230417cf0883940985 (diff)
Initial site layout
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 }}