From 039845804fd545de18a3c4f17f8f7b3ad3bf615b Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Sat, 12 Oct 2024 16:41:42 -0400 Subject: [PATCH] tpl/tplimpl: Trim descriptions rather than just chomp --- tpl/tplimpl/embedded/templates/opengraph.html | 4 ++-- tpl/tplimpl/embedded/templates/schema.html | 4 ++-- tpl/tplimpl/embedded/templates/twitter_cards.html | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tpl/tplimpl/embedded/templates/opengraph.html b/tpl/tplimpl/embedded/templates/opengraph.html index 59e63d6be..9f40aedf0 100644 --- a/tpl/tplimpl/embedded/templates/opengraph.html +++ b/tpl/tplimpl/embedded/templates/opengraph.html @@ -8,8 +8,8 @@ {{- end }} -{{- with or .Description .Summary site.Params.description | plainify | htmlUnescape | chomp }} - +{{- with or .Description .Summary site.Params.description | plainify | htmlUnescape }} + {{- end }} {{- with or .Params.locale site.Language.LanguageCode }} diff --git a/tpl/tplimpl/embedded/templates/schema.html b/tpl/tplimpl/embedded/templates/schema.html index 2b3c5425a..36c01178b 100644 --- a/tpl/tplimpl/embedded/templates/schema.html +++ b/tpl/tplimpl/embedded/templates/schema.html @@ -2,8 +2,8 @@ {{- end }} -{{- with or .Description .Summary site.Params.description | plainify | htmlUnescape | chomp }} - +{{- with or .Description .Summary site.Params.description | plainify | htmlUnescape }} + {{- end }} {{- $ISO8601 := "2006-01-02T15:04:05-07:00" }} diff --git a/tpl/tplimpl/embedded/templates/twitter_cards.html b/tpl/tplimpl/embedded/templates/twitter_cards.html index 6f156c7a7..8af0e986c 100644 --- a/tpl/tplimpl/embedded/templates/twitter_cards.html +++ b/tpl/tplimpl/embedded/templates/twitter_cards.html @@ -10,8 +10,8 @@ {{- end }} -{{- with or .Description .Summary site.Params.description | plainify | htmlUnescape | chomp }} - +{{- with or .Description .Summary site.Params.description | plainify | htmlUnescape }} + {{- end }} {{- $twitterSite := "" }}