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:
Victoria Drake 2020-06-22 12:01:05 -05:00
parent 75da626aae
commit c4994cc895
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
---
title: "_Long_ Form Post"
title: "**Long** Form Post!"
date: 2020-05-30T20:18:53-05:00
showDate: true
draft: false

View file

@ -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 }}