{{ partial "page_header.html" . }}
@@ -62,5 +62,4 @@
{{ end }}
-{{ partial "footer_container.html" . }}
-{{ partial "footer.html" . }}
+{{- end -}}
diff --git a/layouts/section/docs.html b/layouts/section/docs.html
index 15a730dc..bd65fc2e 100644
--- a/layouts/section/docs.html
+++ b/layouts/section/docs.html
@@ -1,5 +1,4 @@
-{{ partial "header.html" . }}
-{{ partial "navbar.html" . }}
+{{- define "main" -}}
{{ partial "page_header.html" . }}
@@ -16,5 +15,4 @@
-{{ partial "footer_container.html" . }}
-{{ partial "footer.html" . }}
+{{- end -}}
diff --git a/layouts/section/post.html b/layouts/section/post.html
index da41003e..2f7df9f3 100644
--- a/layouts/section/post.html
+++ b/layouts/section/post.html
@@ -1,5 +1,4 @@
-{{ partial "header.html" . }}
-{{ partial "navbar.html" . }}
+{{- define "main" -}}
{{ partial "page_header.html" . }}
@@ -23,5 +22,5 @@
{{ partial "pagination" . }}
-{{ partial "footer_container.html" . }}
-{{ partial "footer.html" . }}
+
+{{- end -}}
diff --git a/layouts/section/publication.html b/layouts/section/publication.html
index a1f3c97a..d6b3fb75 100644
--- a/layouts/section/publication.html
+++ b/layouts/section/publication.html
@@ -1,5 +1,4 @@
-{{ partial "header.html" . }}
-{{ partial "navbar.html" . }}
+{{- define "main" -}}
{{ partial "page_header.html" . }}
@@ -75,5 +74,5 @@
-{{ partial "footer_container.html" . }}
-{{ partial "footer.html" . }}
+
+{{- end -}}
diff --git a/layouts/section/talk.html b/layouts/section/talk.html
index 2983a806..ca2951ce 100644
--- a/layouts/section/talk.html
+++ b/layouts/section/talk.html
@@ -1,5 +1,4 @@
-{{ partial "header.html" . }}
-{{ partial "navbar.html" . }}
+{{- define "main" -}}
{{ partial "page_header.html" . }}
@@ -36,5 +35,5 @@
-{{ partial "footer_container.html" . }}
-{{ partial "footer.html" . }}
+
+{{- end -}}
diff --git a/layouts/talk/single.html b/layouts/talk/single.html
index 412014b9..a4262b13 100644
--- a/layouts/talk/single.html
+++ b/layouts/talk/single.html
@@ -1,5 +1,5 @@
-{{ partial "header.html" . }}
-{{ partial "navbar.html" . }}
+{{- define "main" -}}
+
{{ partial "page_header.html" . }}
@@ -84,5 +84,4 @@
{{ end }}
-{{ partial "footer_container.html" . }}
-{{ partial "footer.html" . }}
+{{- end -}}
diff --git a/layouts/widget_page/single.html b/layouts/widget_page/single.html
index e1d285b7..413b2926 100644
--- a/layouts/widget_page/single.html
+++ b/layouts/widget_page/single.html
@@ -1 +1,5 @@
+{{- define "main" -}}
+
{{ partial "widget_page.html" . }}
+
+{{- end -}}