diff options
author | Victoria Drake <hello@victoria.dev> | 2020-06-22 20:01:05 +0300 |
---|---|---|
committer | Victoria Drake <hello@victoria.dev> | 2020-06-22 20:01:05 +0300 |
commit | c4994cc895cd5b0c7432fd112cbb65092dc72362 (patch) | |
tree | 06ed97d4b1a4ba046b7b4ddfe3decbcf2111cf22 /layouts | |
parent | 75da626aae0477072f0da3dd7278fec6f9b45936 (diff) |
Un-markdownify Page titlesv4.2.3
- Prevent rendered HTML from showing up in tab and title bar for titles
that use Markdown
Address #219
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/head/metadata.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/head/metadata.html b/layouts/partials/head/metadata.html index 7481c1c..fc624d2 100644 --- a/layouts/partials/head/metadata.html +++ b/layouts/partials/head/metadata.html @@ -6,7 +6,7 @@ <meta name="referrer" content="no-referrer"> {{ if .Site.Params.description }}<meta name="description" content="{{ .Site.Params.description }}">{{ end }} <title> -{{ .Title | markdownify }}{{ if ne .Title .Site.Title }} - {{ .Site.Title | markdownify }}{{ end }} +{{ .Title | humanize | title }}{{ if ne .Title .Site.Title }} - {{ .Site.Title | markdownify }}{{ end }} </title> <!-- RSS --> {{ with .OutputFormats.Get "RSS" }}<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />{{ end }} |