mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-12-22 14:42:54 +00:00
Un-markdownify Page titles
- Prevent rendered HTML from showing up in tab and title bar for titles that use Markdown Address #219
This commit is contained in:
parent
75da626aae
commit
c4994cc895
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
title: "_Long_ Form Post"
|
||||
title: "**Long** Form Post!"
|
||||
date: 2020-05-30T20:18:53-05:00
|
||||
showDate: true
|
||||
draft: false
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue