diff --git a/layouts/partials/header.html b/layouts/_default/baseof.html similarity index 56% rename from layouts/partials/header.html rename to layouts/_default/baseof.html index f304fde..57e17ce 100644 --- a/layouts/partials/header.html +++ b/layouts/_default/baseof.html @@ -15,7 +15,22 @@ -{{- if .Site.Menus.main }} -{{ partial "nav.html" . }} -{{ end }} +{{ if .Site.Menus.main }}{{ partial "nav.html" . }}{{ end -}}
+

{{ block "title" . }}{{ end }}

+
+{{ block "main" . }} +{{ .Content }} +{{ end }} +{{ if .Param "nextprev" }}{{ partial "nextprev.html" . -}}{{ end -}} +{{ if .Param "taglist" }}{{ partial "taglist.html" . }}{{ end -}} +
+
+{{ block "footer" . }} + +{{ end }} + + diff --git a/layouts/_default/list.html b/layouts/_default/list.html index b6a63be..b05c0a2 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,11 +1,17 @@ -{{ 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..56c5a11 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 }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html deleted file mode 100644 index 4e942f2..0000000 --- a/layouts/partials/footer.html +++ /dev/null @@ -1,10 +0,0 @@ -{{ partial "nextprev.html" . -}} -{{ partial "taglist.html" . -}} -
- - - -