From 64de7c450f7f73593696a4eef9595abf8387e6f7 Mon Sep 17 00:00:00 2001 From: Evan Pearson Date: Thu, 18 Jan 2024 20:22:39 +0100 Subject: [PATCH 1/2] Use post description, fall back to site wide description --- layouts/partials/head.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index bb7ef8b..9afe66c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,9 +1,7 @@ - {{ with .Site.Params.description -}} - - {{ end }} + {{ printf `` ("favicon.ico" | absURL) | safeHTML }} {{ with .OutputFormats.Get "rss" -}} {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} From c2c8a84d420547b4e1a4cbfbf04a7e05cc8d0ece Mon Sep 17 00:00:00 2001 From: Evan Pearson Date: Sun, 4 Feb 2024 15:49:39 +0100 Subject: [PATCH 2/2] remove default description so crawlers will just pick first sentence --- layouts/partials/head.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 9afe66c..95ec216 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,7 +1,11 @@ - + + {{ if or .Description .Site.Params.description -}} + + {{ end -}} + {{ printf `` ("favicon.ico" | absURL) | safeHTML }} {{ with .OutputFormats.Get "rss" -}} {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}