1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2025-05-11 23:16:01 +02: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:
2016-10-06 15:03:35 +03:00
parent d6328c34df
commit 577fdd75ce

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>