diff options
author | uPagge <upagge@mail.ru> | 2020-12-06 02:38:20 +0300 |
---|---|---|
committer | uPagge <upagge@mail.ru> | 2020-12-06 02:38:20 +0300 |
commit | 1da8a5755f219cc1790c5333a07cf18577b80ad3 (patch) | |
tree | 923372942d418d002b0305e5acac873cb3c929df /layouts/posts | |
parent | f239b8a52a5fcca34a7d3120c232c8412bd03016 (diff) |
README.md CHANGE.md
Diffstat (limited to 'layouts/posts')
-rw-r--r-- | layouts/posts/single.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/posts/single.html b/layouts/posts/single.html index c8e95f6..3aff43e 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -108,10 +108,11 @@ {{- /* Content */ -}} <div class="content" id="content" style="padding-top: 20px"> {{- with .Site.Params.dateformat | default "2006-01-02" | .Lastmod.Format -}} + {{- $updateDate := . -}} {{- if not (eq . ($.Site.Params.dateformat | default "2006-01-02" | $.PublishDate.Format)) -}} {{- with $params.upd -}} <div class="post-update"> - <b>{{- dict "Date" . | T "updatedOnDate" -}}:</b> {{ $params.upd }} + <b>{{- dict "Date" $updateDate | T "updatedOnDate" -}}:</b> {{ $params.upd }} </div> {{- else -}} <span class="post-update"> |