From 511cbfbafde4ff463751fadf8dd15d3b7eb41cea Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Thu, 24 Oct 2024 08:14:08 -0500 Subject: Refactor theme usage --- layouts/_default/baseof.html | 9 +++++++++ layouts/_default/list.html | 22 ++++++++++++++++++++++ layouts/_default/single.html | 21 +++++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/_default/list.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..5dc4b24 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,9 @@ + + + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} + {{- block "main" . }}{{- end }} + {{- partial "footer.html" . -}} + + diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..45c8631 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,22 @@ +{{ define "head" }} + +{{ end }} + +{{ define "main" }} +{{ if .Content }} +
+
+ {{ .Content }} +
+{{ else }} +
+ +{{ end}} +
+{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..52e9c13 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,21 @@ +{{ define "head" }} + +{{ end }} + +{{ define "main" }} +
+

{{ .Title }}

+
{{ .PublishDate.Format "January 2, 2006"}}
+
+ {{ .Content }} +
+ {{ if ne .Params.tags nil }} +
+ Keywords: + {{ range .Params.tags }} + #{{ . }} + {{ end }} +
+ {{ end }} +
+{{ end }} -- cgit v1.2.3