diff --git a/layouts/_default/list.atom.xml b/layouts/_default/list.atom.xml index f97a91e..ac6fcbc 100644 --- a/layouts/_default/list.atom.xml +++ b/layouts/_default/list.atom.xml @@ -5,9 +5,9 @@ {{- if not (eq .Kind "home") }} {{- $title = printf `%s on %s` (partial "utils/title" .) $title -}} {{- end }} - {{ trim ($title | plainify) "\n" }} + {{ trim ($title | plainify) "\n" | safeHTML }} {{- with .Site.Params.subtitle }} - {{ trim (. | plainify) "\n" }} + {{ trim (. | plainify) "\n" | safeHTML }} {{- end }} {{- $output_formats := .OutputFormats -}} {{- range $output_formats -}} @@ -34,7 +34,7 @@ {{- end -}} {{- range $page := $pages }} - {{ trim (partial "utils/title" . | plainify) "\n" }} + {{ trim (partial "utils/title" . | plainify) "\n" | safeHTML }} {{ .Permalink }} {{- with .Params.authors }} diff --git a/layouts/partials/head/meta.html b/layouts/partials/head/meta.html index d6a3aad..044c101 100644 --- a/layouts/partials/head/meta.html +++ b/layouts/partials/head/meta.html @@ -7,7 +7,7 @@ {{- $authors := default (slice .Site.Params.GeekblogAuthor) .Params.authors -}} {{- with partial "utils/description" . }} - + {{- end }} {{- with $keywords }} diff --git a/layouts/partials/microformats/opengraph.html b/layouts/partials/microformats/opengraph.html index 1065cb9..bd4b5a9 100644 --- a/layouts/partials/microformats/opengraph.html +++ b/layouts/partials/microformats/opengraph.html @@ -5,7 +5,7 @@ {{- end }} {{- with partial "utils/description" . }} - + {{- end }} diff --git a/layouts/partials/microformats/schema.html b/layouts/partials/microformats/schema.html index 713f8a4..b9206fa 100644 --- a/layouts/partials/microformats/schema.html +++ b/layouts/partials/microformats/schema.html @@ -11,7 +11,7 @@ "name": "{{ .Site.Title }}", "url": "{{ .Site.BaseURL }}", {{- with partial "utils/description" . }} - "description": "{{ trim (. | plainify) "\n" }}", + "description": "{{ trim (. | plainify) "\n" | safeHTML }}", {{- end }} "thumbnailUrl": "{{ $thumbnail }}" {{- with .Site.Params.GeekblogContentLicense }}, @@ -35,7 +35,7 @@ "alternativeHeadline": "{{ . }}", {{- end }} {{- with partial "utils/description" . }} - "description": "{{ trim (. | plainify) "\n" }}", + "description": "{{ trim (. | plainify) "\n" | safeHTML }}", {{- end }} "inLanguage": {{ .Site.Language.Lang }}, "isFamilyFriendly": "true", diff --git a/layouts/partials/microformats/twitter_cards.html b/layouts/partials/microformats/twitter_cards.html index 55097be..86f96d4 100644 --- a/layouts/partials/microformats/twitter_cards.html +++ b/layouts/partials/microformats/twitter_cards.html @@ -21,7 +21,7 @@ {{- end }} {{- with partial "utils/description" . }} - + {{- end }} {{- with .Site.Social.twitter -}}