From 653247d765655fedf3b39eca5e5e0e168d0aee43 Mon Sep 17 00:00:00 2001 From: trwnh Date: Tue, 25 Oct 2022 18:08:11 -0500 Subject: [PATCH] Improve metadata and make it more robust --- layouts/partials/seo.html | 224 ++++++++++++++++++++++---------------- 1 file changed, 129 insertions(+), 95 deletions(-) diff --git a/layouts/partials/seo.html b/layouts/partials/seo.html index 669211e..556d500 100644 --- a/layouts/partials/seo.html +++ b/layouts/partials/seo.html @@ -1,98 +1,132 @@ -{{ $icon := "images/icon.png" | absURL }} - -{{ if .IsPage }}{{ with .Params.tags }}{{ end }}{{ end }} -{{ if .IsHome }}{{ .Site.Title }} -{{ .Site.Title }} - - - -{{ else }}{{ .Title }} | {{ .Site.Title }} -{{ .Title }} | {{ .Site.Title }} - - -{{ end }} - - - - - - - - - - - -{{ with .Params.cover }} - - -{{ else }} - - - -{{ end }} - -{{ if isset .Params "date" }} - -{{ else }} - -{{ end }} - -{{ with.Params.author }} - -{{ end }} -{{ with.Params.category }} -{{ end }} - - - -{{ with .OutputFormats.Get "RSS" }} -{{ end }} - - - - - - - - - - - - - - \ No newline at end of file + {{- else -}} + {{ "" | safeHTML }} + + + {{- end -}} + + {{/* auxiliary info */}} + {{ "" | safeHTML }} + {{- with $icon }} + + {{- else -}} + + {{- end }} + + + + {{ with .OutputFormats.Get "RSS" -}} + + {{- end }} + +