diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2021-05-03 22:05:25 +0200 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2021-05-03 22:05:25 +0200 |
commit | 9e9c7d34038a830d22397bbec08e7ec64eb0a0d7 (patch) | |
tree | 81465b79d5a6b015e1ea5ec5ab0170c5a62328e1 /layouts/partials | |
parent | c197f3399b0aee698afc5278dbb33506892311ef (diff) |
Improve posts title rendering
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/docs/post-meta.html | 6 |
1 files changed, 3 insertions, 3 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 }} <h5>{{ partial "docs/date" (dict "Date" . "Format" $.Site.Params.BookDateFormat) }}</h5> {{ end }} @@ -12,12 +12,12 @@ {{ end }} {{ end }} +{{ if .Params.image }} <p> -{{ if .Params.image}} {{ with .Resources.GetMatch .Params.image }} <img src={{ .RelPermalink }} /> {{ else }} <img src={{ .Params.image | relURL }} /> {{ end }} -{{ end }} </p> +{{ end }} |