1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-11-17 17:57:04 +01:00

layouts/_default/single.html: Markdownify page title

In a multilingual context a post's title could be "Title" in English
but «Title» in Bulgarian, and if we apply the Markdown filter to the
title tag, then the language's Black Friday configuration is used,
in this example it would be for the angled quotes.

We already do this everywhere else we can in the post's content, so
let's match it in the page title.
This commit is contained in:
Alan Orth 2016-10-06 15:03:35 +03:00
parent d6328c34df
commit 577fdd75ce
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -1,4 +1,4 @@
{{ define "title" }}{{ .Title }} | {{ .Site.Title }}{{ end }}
{{ define "title" }}{{ .Title | markdownify }} | {{ .Site.Title }}{{ end }}
{{ define "main" }}
<article class="blog-post">
<header>