From 3a6bed5be72bcbc127cde123be5daf8f2ddcdeb8 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 6 Oct 2016 14:17:59 +0300 Subject: [PATCH] layouts: Use Markdown filter on titles This makes it possible to have Black Friday config options like quote style also affect post titles. --- layouts/_default/single.html | 2 +- layouts/_default/summary.html | 2 +- layouts/partials/sidebar.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 3270835..21a978b 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,7 +2,7 @@ {{ define "main" }}
-

{{ .Title }}

+

{{ .Title | markdownify }}

{{ .Content }} diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index 60e6b16..954a76c 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -1,6 +1,6 @@
-

{{ .Title }}

+

{{ .Title | markdownify }}

{{ .Summary }} diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index dc8bc34..eb3441a 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -12,7 +12,7 @@

{{ i18n "recentPosts" }}

    {{ range first $num_recent_posts (where .Site.Pages "Type" "post") }} -
  1. {{.Title}}
  2. +
  3. {{.Title | markdownify }}
  4. {{ end }}