From 0da6ee8846f597ac897646a2f33521a1efe0655c Mon Sep 17 00:00:00 2001 From: Matt Kohls Date: Sat, 6 Jun 2020 18:16:00 -0400 Subject: Initial work on theme --- layouts/404.html | 12 ++++++++++++ layouts/_default/list.html | 14 ++++++++++++++ layouts/_default/rss.xml | 26 ++++++++++++++++++++++++++ layouts/_default/single.html | 8 ++++++++ layouts/_default/terms.html | 15 +++++++++++++++ layouts/index.html | 17 +++++++++++++++++ layouts/partials/footer.html | 10 ++++++++++ layouts/partials/header.html | 26 ++++++++++++++++++++++++++ layouts/partials/titleblock.html | 10 ++++++++++ layouts/shortcodes/audio.html | 16 ++++++++++++++++ 10 files changed, 154 insertions(+) create mode 100644 layouts/404.html create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/rss.xml create mode 100644 layouts/_default/single.html create mode 100644 layouts/_default/terms.html create mode 100644 layouts/index.html create mode 100644 layouts/partials/footer.html create mode 100644 layouts/partials/header.html create mode 100644 layouts/partials/titleblock.html create mode 100644 layouts/shortcodes/audio.html (limited to 'layouts') diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..9173bf5 --- /dev/null +++ b/layouts/404.html @@ -0,0 +1,12 @@ +{{ partial "header.html" . }} +
+ {{ partial "titleblock.html" . }} + +

+ The thing you are looking for can not be found. +

+

+ Home +

+
+{{ partial "footer.html" . }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..de91b69 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,14 @@ +{{ partial "header.html" . }} +
+ {{ partial "titleblock.html" . }} +

+

+

+
+{{ partial "footer.html" . }} diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml new file mode 100644 index 0000000..a8eedea --- /dev/null +++ b/layouts/_default/rss.xml @@ -0,0 +1,26 @@ + + + {{ .Site.Title }} + {{ .Permalink }} + Recent content on {{ .Site.Title }} + Hugo -- gohugo.io{{ with .Site.LanguageCode }} + {{.}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} + {{.}}{{end}}{{ if not .Date.IsZero }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + {{ with .OutputFormats.Get "RSS" }} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{ end }} + {{ range where .Site.RegularPages "Section" "posts" }} + + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ .Permalink }} + {{ .Content | html }} + + {{ end }} + + diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..ca37c7f --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,8 @@ +{{ partial "header.html" . }} +
+ {{ partial "titleblock.html" . }} + + {{ .Content }} + +
+{{ partial "footer.html" . }} diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html new file mode 100644 index 0000000..fd6cb7d --- /dev/null +++ b/layouts/_default/terms.html @@ -0,0 +1,15 @@ +{{ partial "header.html" . }} +
+ {{ partial "titleblock.html" . }} +

+

+

+
+{{ partial "footer.html" . }} diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..3a555e5 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,17 @@ +{{ partial "header.html" . }} +
+ {{ partial "titleblock.html" . }} + +

+ {{ .Content }} + +

+

+
+{{ partial "footer.html" . }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..9787a40 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,10 @@ + + + diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..3aa09f4 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,26 @@ + + + + + + {{ .Title }} | {{ .Site.Title }} + + + + +
+ +
+
diff --git a/layouts/partials/titleblock.html b/layouts/partials/titleblock.html new file mode 100644 index 0000000..e2f4549 --- /dev/null +++ b/layouts/partials/titleblock.html @@ -0,0 +1,10 @@ +

{{ .Title | markdownify }}

+

+{{ if (gt .Params.date 0) }} {{ .Date.Format "January 2, 2006" }} {{ end }} {{ if (gt .Params.author 0) }} by {{ with .Params.author }} {{ . }} {{ end }} {{ end }}
+{{ range $i := (slice "categories" "tags") }} +{{ with ($.Param $i) }} +{{ $i | title }}: {{ range $k := . }}{{$k}} {{ end }}
+{{ end }} +{{ end }} +

+
diff --git a/layouts/shortcodes/audio.html b/layouts/shortcodes/audio.html new file mode 100644 index 0000000..d64d850 --- /dev/null +++ b/layouts/shortcodes/audio.html @@ -0,0 +1,16 @@ + -- cgit v1.2.3