diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 5f8e2ec..b941097 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,11 +1,11 @@
- {{- partial "head.html" . -}}
+ {{- partial "header.html" . -}}
- {{- partial "header.html" . -}}
-
+
+ {{- partial "head.html" . -}}
{{- block "main" . }}{{- end }}
-
{{- partial "footer.html" . -}}
+
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 32f5e0b..41a4c6f 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,31 +1,17 @@
-
-
-{{ partial "header.html" . }}
+{{ define "main" }}
+{{ if isset .Data "Term" }}
+
- {{ partial "head.html" . }}
+{{ define "main" }}
-
+
{{ .Title }}
Posted on {{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} DRAFT {{ end }}
-
- {{ if isset .Params "tldr" }}
-
- tl;dr:
- {{ .Params.tldr }}
-
{{ end }}
-
+ {{ if isset .Params "tldr" }}
+
+ tl;dr:
+ {{ .Params.tldr }}
+
{{ end }}
{{ .Content }}
@@ -24,20 +17,17 @@
{{ if ne .Type "page" }}
- {{ if gt .Params.tags 0 }}
-
- {{ end }}
+ {{ if gt .Params.tags 0 }}
+
+ {{ end }}
{{ end }}
-
-
- {{ partial "footer.html" . }}
-
-
-
+
+
+{{ end }}
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
index cec21f6..fea9c2f 100644
--- a/layouts/_default/terms.html
+++ b/layouts/_default/terms.html
@@ -1,31 +1,20 @@
-
-
-{{ partial "header.html" . }}
+{{ define "main" }}
+
+ {{ partial "head.html" . }}
+
-
- {{- if isset .Site.Params "subtitle" -}}
-
{{ .Site.Params.Subtitle | markdownify }}
- {{- end -}}
-
+
+ {{- if isset .Site.Params "subtitle" -}}
+
{{ .Site.Params.Subtitle | markdownify }}
+ {{- end -}}
+
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
{{ $paginator := .Paginate (where $pages "Params.hidden" "ne" true) }}
{{ range $paginator.Pages }}
-
+
{{ if isset .Params "description" }}
{{ .Description }}
{{ else }}
{{ .Summary }}…
{{ end }}
-
+
Read more ⟶
{{ end }}
@@ -31,7 +32,5 @@
{{ partial "footer.html" . }}
-
-
-
-
\ No newline at end of file
+
+