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

This commit is contained in:
jake committed 2020-08-10 10:58:22 -04:00
1 parent 9b5a29be7b
commit 0f9de4d350
12 files changed
+40 -33

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
<meta charset="utf-8">
{{ hugo.Generator }}
<title>{{ .Title }}{{ if not .IsHome }} – {{ .Site.Title }}{{ else }} 👨‍💻{{ end }}</title>
<title>{{ .Scratch.Get "plainTitle" }}{{ if not .IsHome }} – {{ .Site.Title }}{{ end }}</title>
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}">
{{ with .Site.Author.name }}<meta name="author" content="{{ . }}">{{ end }}
<meta name="viewport" content="width=device-width, initial-scale=1">