From 49f746f1ee9205c4028bdc8f18aa888367eb3ddb Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Mon, 29 Apr 2019 00:13:49 +0100 Subject: Initial site layout --- layouts/_default/baseof.html | 11 +++++++++++ layouts/_default/home.html | 4 ++++ layouts/_default/posts.html | 9 +++++++++ layouts/_default/shows.html | 22 ++++++++++++++++++++++ layouts/_default/single.html | 21 +++++++++++++++++++++ 5 files changed, 67 insertions(+) create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/_default/home.html create mode 100644 layouts/_default/posts.html create mode 100644 layouts/_default/shows.html create mode 100644 layouts/_default/single.html (limited to 'layouts/_default') 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 @@ + + + {{ partial "head.html" . }} + +
{{ partial "header.html" . }}
+ +
{{ block "main" . }}{{ end }}
+ + + + 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" }} +

I write posts about programming and Linux topics that are of interest to me.

+

Subscribe to the blog by using this RSS link.

+ +{{ 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 }} +

YouTube Shows

+

I make and host YouTube shows about programming and Linux.

+ + {{ else }} +

{{ .Title }}

+

{{ .Params.Summary }}

+

The YouTube playlist can be found here.

+

Subscribe to the show posts by using this RSS link.

+

Episodes

+ + {{ 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" }} +
+

{{ .Title }}

+ {{ .Content }} +
+ {{ if or .NextInSection .PrevInSection }} + + {{ end }} +{{ end }} -- cgit v1.2.3-13-gbd6f