From 40647ffb41c2b6ddcdb01a10d1c827fb415abb35 Mon Sep 17 00:00:00 2001 From: Emiel Hollander Date: Tue, 16 Oct 2018 17:45:43 +0200 Subject: Fix duplicate header Partial head.html was included in baseof.html, but also in header.html, causing the body to contain html and head tags. --- layouts/_default/baseof.html | 10 +++++----- layouts/partials/header.html | 6 ------ 2 files changed, 5 insertions(+), 11 deletions(-) (limited to 'layouts') diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 263e996..866a593 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,9 +1,9 @@ - - {{- partial "head.html" . -}} + + {{ partial "head.html" . }} - {{- partial "header.html" . -}} - {{- block "main" . -}}{{- end -}} - {{- partial "footer.html" . -}} + {{ partial "header.html" . }} + {{ block "main" . }}{{ end }} + {{ partial "footer.html" . }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index eb22285..3ba1dae 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,9 +1,3 @@ - - - - {{ partial "head.html" . }} - -