From 35fe5b5fe26e6895cb81f208cc26314b7f73f100 Mon Sep 17 00:00:00 2001 From: Leon Rosenshein Date: Mon, 25 Apr 2022 12:01:01 -0600 Subject: Add OpenGraph meta tags for social media linking --- layouts/partials/header.html | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 5478392..290b3cf 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -3,14 +3,14 @@ {{- if .IsHome -}} - {{ if .Site.Title -}} - {{ .Site.Title -}} - {{ else -}} - {{ .Site.Params.Title -}} - {{ end -}} - · {{ .Site.Params.Tagline -}} + {{ if .Site.Title -}} + {{ .Site.Title -}} {{ else -}} - {{ .Title }} · {{ .Site.Title }} {{ .Site.Params.Title -}} + {{ .Site.Params.Title -}} + {{ end -}} + · {{ .Site.Params.Tagline -}} + {{ else -}} + {{ .Title }} · {{ .Site.Title }} {{ .Site.Params.Title -}} {{- end -}} @@ -24,18 +24,20 @@ - + - + {{ if .Description -}} - + {{ else -}} - + {{ end -}} {{ if .Params.tags -}} @@ -43,7 +45,14 @@ {{ end -}} - {{- partial "custom_header.html" . -}} + {{ if .Params.Previewimage -}} + + {{ else -}} + + {{ end }} + + {{ "" | safeHTML }} + {{ partial "custom_header.html" . }} {{ template "_internal/google_analytics.html" . }} - + \ No newline at end of file -- cgit v1.2.3