From 660f1fcaaf8e1bb9ad9ce9c3e4a308ca1077d94f Mon Sep 17 00:00:00 2001 From: undergroundwires Date: Fri, 31 Dec 2021 04:25:13 +0100 Subject: [PATCH] Make it easier to override subtitle --- layouts/index.html | 5 ++--- layouts/partials/subtitle.html | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 layouts/partials/subtitle.html diff --git a/layouts/index.html b/layouts/index.html index 56dc443..d0c02a4 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -10,9 +10,8 @@ {{ end }}

{{ .Site.Title }}

- {{- with .Site.Params.homeSubtitle }} -

{{.}}

- {{- end }} + + {{ partial "subtitle.html" . }} {{- with .Site.Params.social }}
diff --git a/layouts/partials/subtitle.html b/layouts/partials/subtitle.html new file mode 100644 index 0000000..f7f3e24 --- /dev/null +++ b/layouts/partials/subtitle.html @@ -0,0 +1,3 @@ +{{- with .Site.Params.homeSubtitle }} +

{{.}}

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