From ca9efbcaaaffc5c79af93188c991051ba1c7a42e Mon Sep 17 00:00:00 2001 From: Skiz Date: Wed, 17 Jul 2024 20:12:54 -0400 Subject: Created theme file --- themes/schizo/layouts/partials/nav.html | 8 ++++++++ themes/schizo/layouts/partials/nextprev.html | 10 ++++++++++ themes/schizo/layouts/partials/taglist.html | 13 +++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 themes/schizo/layouts/partials/nav.html create mode 100644 themes/schizo/layouts/partials/nextprev.html create mode 100644 themes/schizo/layouts/partials/taglist.html (limited to 'themes/schizo/layouts/partials') diff --git a/themes/schizo/layouts/partials/nav.html b/themes/schizo/layouts/partials/nav.html new file mode 100644 index 0000000..a7318fe --- /dev/null +++ b/themes/schizo/layouts/partials/nav.html @@ -0,0 +1,8 @@ + diff --git a/themes/schizo/layouts/partials/nextprev.html b/themes/schizo/layouts/partials/nextprev.html new file mode 100644 index 0000000..099f16d --- /dev/null +++ b/themes/schizo/layouts/partials/nextprev.html @@ -0,0 +1,10 @@ +{{ if or .Next .Prev -}} +
+{{- with .Prev }} +
Previous:
{{.Title}}
+{{ end -}} +{{- with .Next -}} +
Next:
{{.Title}}
+{{ end -}} +
+{{ end -}} diff --git a/themes/schizo/layouts/partials/taglist.html b/themes/schizo/layouts/partials/taglist.html new file mode 100644 index 0000000..757db6f --- /dev/null +++ b/themes/schizo/layouts/partials/taglist.html @@ -0,0 +1,13 @@ + {{- if isset .Params "tags" -}} + {{- $tagsLen := len .Params.tags -}} + {{- if gt $tagsLen 0 -}} +
+ {{- with .Site.Params.relatedtext }}{{ . }}
{{ end -}} + {{- range $k, $v := .Params.tags -}} + {{- $url := printf "tags/%s" (. | urlize | lower) -}} + {{ . | title }} + {{- if lt $k (sub $tagsLen 1) }} · {{ end -}} + {{- end -}} +
+ {{- end -}} + {{- end }} -- cgit v1.2.3