From 02b710263ad3d10a6090e671b85fec2fef225565 Mon Sep 17 00:00:00 2001 From: Leon Rosenshein Date: Wed, 27 Apr 2022 21:37:37 -0600 Subject: More work on tags --- layouts/partials/header.html | 43 +++++++++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index f20945b..2417005 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -32,32 +32,39 @@ - + {{ hugo.Generator }}" + {{- if .Params.tags }} + + {{- end }} + + {{ $descText := "" -}} {{ if .Description -}} - + {{$descText = .Description -}} {{ else -}} - - {{ end }} + {{$descText = .Site.Params.Tagline -}} + {{ end -}} - {{ "" | safeHTML }} + {{ $imageLink := "" -}} + {{ if .Description -}} + {{$imageLink = .Description -}} + {{ else -}} + {{$imageLink = .Site.Params.Tagline -}} + {{ end -}} + + {{ "" | safeHTML }} - {{ if .Site.Social.twitteruser -}} - - {{ end }} - {{- if not .IsHome -}} - - {{ end }} + + + + - {{ if .Params.tags -}} - + {{- if not .IsHome -}} + {{ end -}} - - {{ if .Params.Previewimage -}} - - {{ else -}} - + {{- if .Site.Social.twitteruser -}} + {{ end }} {{ "" | safeHTML }} -- cgit v1.2.3