From c4ae1000a095b1b3558d52ef94f2637f66098491 Mon Sep 17 00:00:00 2001 From: Melroy van den Berg Date: Tue, 22 Oct 2024 18:29:13 +0200 Subject: [PATCH] Add transform.Plainify to the summary Signed-off-by: Melroy van den Berg --- layouts/partials/social/share.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/social/share.html b/layouts/partials/social/share.html index cb56e12..14cdafc 100644 --- a/layouts/partials/social/share.html +++ b/layouts/partials/social/share.html @@ -66,7 +66,7 @@ {{- $setup := .setup -}} {{- $separator := "&" -}} {{- $title := $context.Title | transform.HTMLEscape -}} - {{- $description := $context.Summary | transform.HTMLEscape -}} + {{- $description := $context.Summary | transform.Plainify | transform.HTMLEscape -}} {{- $permalink := $context.Permalink | transform.HTMLEscape -}} {{- with $setup.separator -}} {{- $separator = . -}}