summaryrefslogtreecommitdiff
path: root/layouts/_default/shows.html
blob: 404ebc3a84954b3147c40b1ad77f87975a66614b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 }}