From 577fdd75cee34051dadef01ec7f0a0252e34ac82 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 6 Oct 2016 15:03:35 +0300 Subject: [PATCH] layouts/_default/single.html: Markdownify page title MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- layouts/_default/single.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index d20a431..08cae69 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,4 +1,4 @@ -{{ define "title" }}{{ .Title }} | {{ .Site.Title }}{{ end }} +{{ define "title" }}{{ .Title | markdownify }} | {{ .Site.Title }}{{ end }} {{ define "main" }}