Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictoria Drake <hello@victoria.dev>2020-06-22 20:01:05 +0300
committerVictoria Drake <hello@victoria.dev>2020-06-22 20:01:05 +0300
commitc4994cc895cd5b0c7432fd112cbb65092dc72362 (patch)
tree06ed97d4b1a4ba046b7b4ddfe3decbcf2111cf22 /layouts
parent75da626aae0477072f0da3dd7278fec6f9b45936 (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.html2
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 }}