summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/baseof.html11
-rw-r--r--layouts/_default/home.html4
-rw-r--r--layouts/_default/posts.html9
-rw-r--r--layouts/_default/shows.html22
-rw-r--r--layouts/_default/single.html21
5 files changed, 67 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
new file mode 100644
index 0000000..8b980fa
--- /dev/null
+++ b/layouts/_default/baseof.html
@@ -0,0 +1,11 @@
+<!doctype html>
+<html lang="en">
+ <head>{{ partial "head.html" . }}</head>
+ <body>
+ <header>{{ partial "header.html" . }}</header>
+ <nav>{{ partial "nav.html" . }}</nav>
+ <main>{{ block "main" . }}{{ end }}</main>
+ <footer>{{ partial "footer.html" . }}</footer>
+ </body>
+</html>
+
diff --git a/layouts/_default/home.html b/layouts/_default/home.html
new file mode 100644
index 0000000..d70be7e
--- /dev/null
+++ b/layouts/_default/home.html
@@ -0,0 +1,4 @@
+{{ define "main" }}
+ {{ .Content }}
+{{ end }}
+
diff --git a/layouts/_default/posts.html b/layouts/_default/posts.html
new file mode 100644
index 0000000..dc0587a
--- /dev/null
+++ b/layouts/_default/posts.html
@@ -0,0 +1,9 @@
+{{ define "main" }}
+ <p>I write posts about programming and Linux topics that are of interest to me.</p>
+ <p>Subscribe to the blog by using this <a href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}">RSS link</a>.</p>
+ <ul>
+ {{ range (where .Data.Pages "Type" "posts") }}
+ <li>{{ .Date.Format "2006-01-01" }} - <a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
+ {{ end }}
+ </ul>
+{{ end }}
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 }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..4fc7064
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,21 @@
+{{ define "main" }}
+ <article>
+ <h1>{{ .Title }}</h1>
+ {{ .Content }}
+ </article>
+ {{ if or .NextInSection .PrevInSection }}
+ <nav class="pagination">
+ <hr/>
+ <p>More Episodes</p>
+ <ul>
+ {{ if .PrevInSection }}
+ <li class="prev"><a href="{{ .PrevInSection.Permalink }}">« {{ .PrevInSection.Title }}</a></li>
+ {{ end }}
+ {{ if .NextInSection }}
+ <li class="next"><a href="{{ .NextInSection.Permalink }}">{{ .NextInSection.Title }} »</a></li>
+ {{ end }}
+ </ul>
+ <hr/>
+ </nav>
+ {{ end }}
+{{ end }}