strip any markdown in page titles from meta/social tags in head

This commit is contained in:
2020-08-10 10:58:22 -04:00
parent 9b5a29be7b
commit 0f9de4d350
12 changed files with 40 additions and 33 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
{{- $img := partial "functions/social-images" . -}}
{{- $img := partial "functions/meta-scratch" . -}}
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\"?>" | safeHTML }}
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ .Site.Title }}</title>
@@ -23,7 +23,7 @@
{{- end }}
{{- range (where .Site.RegularPages "Section" .Site.Params.mainSection) }}
<entry>
<title>{{ .Title }}</title>
<title>{{ .Title | markdownify | htmlUnescape | plainify }}</title>
{{- with .Site.Author.name }}
<author>
<name>{{ . }}</name>