From c2a5399259737b31bbe98b56cf61525bc507b62d Mon Sep 17 00:00:00 2001 From: Dmitry Kolosov Date: Sat, 12 Aug 2023 10:28:38 +0200 Subject: [PATCH] markdonify titles #198 --- layouts/_default/list.html | 4 ++-- layouts/_default/single.html | 4 ++-- layouts/_default/taxonomy.html | 2 +- layouts/_default/terms.html | 4 ++-- layouts/partials/post-pagination.html | 4 ++-- layouts/partials/post-summary.html | 2 +- layouts/partials/title.html | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index d699ce7..ea25bcf 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -4,7 +4,7 @@
-

{{ i18n .Title }}

+

{{ i18n .Title | markdownify }}

{{ $showFullContent := in .Site.Params.sectionsWithFullContentOnListPage .Section }} {{ $pages := where .Pages "Params.hidden" "!=" true}} @@ -17,7 +17,7 @@
-

{{ trim .Title " " }}

+

{{ trim .Title " " | markdownify }}

{{ partial "post-language-switcher.html" . }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index ddda8bb..1ac45f7 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,7 +2,7 @@ {{ if .Menus }} {{ end }} @@ -10,7 +10,7 @@
-

{{ trim .Title " " }}

+

{{ trim .Title " " | markdownify }}

{{ partial "post-language-switcher.html" . }}
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index 9c04382..85bfe54 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -1,5 +1,5 @@ {{ define "main" }} -

{{ i18n .Data.Singular | humanize }}: {{ .Title }}

+

{{ i18n .Data.Singular | humanize | markdownify }}: {{ .Title | markdownify }}

diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 60e624a..2eb6d47 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -3,13 +3,13 @@ {{ .Content }}
-

{{ i18n .Title }}

+

{{ i18n .Title | markdownify }}