From ebf28f08194e295dde7cdb61f75c107a614a64f1 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 19 Dec 2023 23:27:48 +0100 Subject: Update defaults --- layouts/_default/list.html | 25 +++++++++++++++++-------- layouts/_default/single.html | 8 +++----- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index b6a63be..601fc08 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,11 +1,20 @@ -{{ partial "header.html" . -}} -

{{ .Title | title }}

-
-{{ .Content -}} +{{ define "title" -}} +{{ .Title | title }} +{{- end }} +{{ define "main" -}} +{{ .Content }} -
-{{- partial "footer.html" . }} +{{- end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 43e8c2a..f65a7d8 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,5 +1,3 @@ -{{ partial "header.html" . -}} -

{{ .Title }}

-
-{{ .Content -}} -{{ partial "footer.html" . }} +{{ define "title" }} +{{ .Title }} +{{ end }} -- cgit v1.2.3-70-g09d2