diff --git a/layouts/partials/templates/opengraph.html b/layouts/partials/templates/opengraph.html index 352b2e7c..8c765d13 100644 --- a/layouts/partials/templates/opengraph.html +++ b/layouts/partials/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/layouts/partials/templates/twitter_cards.html b/layouts/partials/templates/twitter_cards.html index eab85ac5..bcbc435e 100644 --- a/layouts/partials/templates/twitter_cards.html +++ b/layouts/partials/templates/twitter_cards.html @@ -19,8 +19,8 @@ {{- end }} -{{- with or .Description .Summary site.Params.description | plainify | htmlUnescape | chomp }} - +{{- with or .Description .Summary site.Params.description | plainify | htmlUnescape }} + {{- end }} {{- $twitterSite := "" }}