From 9e9c7d34038a830d22397bbec08e7ec64eb0a0d7 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Mon, 3 May 2021 22:05:25 +0200 Subject: Improve posts title rendering --- layouts/partials/docs/post-meta.html | 6 +++--- layouts/posts/list.html | 2 +- layouts/posts/single.html | 2 +- layouts/taxonomy/taxonomy.html | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/layouts/partials/docs/post-meta.html b/layouts/partials/docs/post-meta.html index 527431a..01adf8b 100644 --- a/layouts/partials/docs/post-meta.html +++ b/layouts/partials/docs/post-meta.html @@ -1,4 +1,4 @@ -{{ with .Date}} +{{ with .Date }}
{{ partial "docs/date" (dict "Date" . "Format" $.Site.Params.BookDateFormat) }}
{{ end }} @@ -12,12 +12,12 @@ {{ end }} {{ end }} +{{ if .Params.image }}

-{{ if .Params.image}} {{ with .Resources.GetMatch .Params.image }} {{ else }} {{ end }} -{{ end }}

+{{ end }} diff --git a/layouts/posts/list.html b/layouts/posts/list.html index 12207c8..badf0f6 100644 --- a/layouts/posts/list.html +++ b/layouts/posts/list.html @@ -2,7 +2,7 @@ {{ range sort .Paginator.Pages }}

- {{ .Title }} + {{ partial "docs/title.html" . }}

{{ partial "docs/post-meta" . }}

diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 79cd303..301ca1e 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -1,7 +1,7 @@ {{ define "main" }}