From 648a67b056df898bfdd10033ce782aa121910a7c Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Wed, 3 Aug 2022 21:28:39 -0500 Subject: Fix theme and content generation --- themes/markskitchen/layouts/_default/baseof.html | 2 +- themes/markskitchen/layouts/_default/list.html | 7 +++++++ themes/markskitchen/layouts/index.html | 3 --- 3 files changed, 8 insertions(+), 4 deletions(-) delete mode 100644 themes/markskitchen/layouts/index.html (limited to 'themes/markskitchen') diff --git a/themes/markskitchen/layouts/_default/baseof.html b/themes/markskitchen/layouts/_default/baseof.html index c4963da..5dc4b24 100644 --- a/themes/markskitchen/layouts/_default/baseof.html +++ b/themes/markskitchen/layouts/_default/baseof.html @@ -1,5 +1,5 @@ - + {{- partial "head.html" . -}} {{- partial "header.html" . -}} diff --git a/themes/markskitchen/layouts/_default/list.html b/themes/markskitchen/layouts/_default/list.html index 9388e7d..5c745d6 100644 --- a/themes/markskitchen/layouts/_default/list.html +++ b/themes/markskitchen/layouts/_default/list.html @@ -3,6 +3,12 @@ {{ end }} {{ define "main" }} +{{ if .Content }} +
+
+ {{ .Content }} +
+{{ else }}
    {{ range .Pages }} @@ -11,5 +17,6 @@ {{ end }}
+{{ end}}
{{ end }} diff --git a/themes/markskitchen/layouts/index.html b/themes/markskitchen/layouts/index.html deleted file mode 100644 index 422469a..0000000 --- a/themes/markskitchen/layouts/index.html +++ /dev/null @@ -1,3 +0,0 @@ -{{ define "head" }} - -{{ end }} -- cgit v1.2.3