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
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
-rwxr-xr-xexampleSite/content/en/blog/long-form-post.md2
-rw-r--r--layouts/partials/head/metadata.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/exampleSite/content/en/blog/long-form-post.md b/exampleSite/content/en/blog/long-form-post.md
index fafd351..b15867e 100755
--- a/exampleSite/content/en/blog/long-form-post.md
+++ b/exampleSite/content/en/blog/long-form-post.md
@@ -1,5 +1,5 @@
---
-title: "_Long_ Form Post"
+title: "**Long** Form Post!"
date: 2020-05-30T20:18:53-05:00
showDate: true
draft: false
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 }}