From e5f250c91c4d4d8bd4b58a5f290a1b4fb8573ff4 Mon Sep 17 00:00:00 2001 From: "Kevin C. Coram" Date: Fri, 22 Nov 2019 23:29:39 -0500 Subject: [PATCH] Move site title/sub-title into header partial --- layouts/index.html | 10 ---------- layouts/partials/header.html | 6 ++++++ 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index c7eb2a4..fe2186e 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,13 +1,3 @@ -{{- define "content-header" -}} -
-

{{.Title}}

- {{- if .Params.Subtitle }} -

{{.Params.Subtitle}}

- {{- else if .Site.Params.Subtitle }} -

{{.Site.Params.Subtitle}}

- {{- end }} -
-{{ end }} {{ define "content" }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index e69de29..d620aa3 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -0,0 +1,6 @@ +
+

{{.Site.Title}}

+ {{- if .Site.Params.Subtitle }} +

{{.Site.Params.Subtitle}}

+ {{- end }} +
\ No newline at end of file