From 62f446b2963f4a2df585ae384ec34caad7a737d9 Mon Sep 17 00:00:00 2001 From: "max.mehl" Date: Fri, 14 Feb 2020 10:54:17 +0100 Subject: [PATCH] add preview images --- .../hugo-sustain/layouts/partials/head.html | 42 ++++++++++++++----- 1 file changed, 32 insertions(+), 10 deletions(-) diff --git a/themes/hugo-sustain/layouts/partials/head.html b/themes/hugo-sustain/layouts/partials/head.html index a37b702..164da3f 100644 --- a/themes/hugo-sustain/layouts/partials/head.html +++ b/themes/hugo-sustain/layouts/partials/head.html @@ -1,29 +1,51 @@ + + {{- $title := "" -}} + {{- if .IsHome -}} + {{- $title = .Site.Title -}} + {{- else -}} + {{- if .Params.heading -}} + {{- $title = .Params.heading -}} + {{- else -}} + {{- $title = print .Site.Title " | " .Title -}} + {{- end -}} + {{- end -}} + {{- $image := "/img/profile.jpg" -}} + {{- if isset .Params "headerimage" }} {{ $image = .Params.headerimage }} {{ end -}} {{ with .Site.Params.description }}{{ end }} - {{ with .Site.Params.keywords }}{{ end }} + {{ with .Site.Params.keywords }}{{ end }} - - {{- if .IsHome -}} - {{- .Site.Title -}} - {{- else -}} - {{- if .Params.heading -}} {{- .Params.heading -}} {{- else -}} {{- .Site.Title -}} {{ print " | " }} {{- .Title -}} {{- end -}} - {{- end -}} - + {{ $title }} - {{ range .Site.Params.custom_css }} + {{- range .Site.Params.custom_css }} - {{ end }} + {{- end }} + + {{ "" | safeHTML }} + + + + + + {{ "" | safeHTML }} + + + + + + +