diff options
author | uPagge <git@upagge.ru> | 2021-06-06 16:55:30 +0300 |
---|---|---|
committer | uPagge <git@upagge.ru> | 2021-06-06 16:55:30 +0300 |
commit | baf764592aae371cf723a9e64c8d3ef027f37332 (patch) | |
tree | ba114e4d0aaf29d90b0c894eca2577d189025781 | |
parent | 81b05516178f2d0ae1e852a756700e6639f17983 (diff) |
hiddenDateUpdate
-rw-r--r-- | layouts/posts/single.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/posts/single.html b/layouts/posts/single.html index e6470ed..331d3b0 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -255,6 +255,7 @@ {{- /* Content */ -}} + {{ if eq ($params.Page.hiddenDateUpdate | default false) false }} {{- with .Site.Params.dateformat | default "2006-01-02" | .Lastmod.Format -}} {{- $updateDate := . -}} {{- if not (eq . ($.Site.Params.dateformat | default "2006-01-02" | $.PublishDate.Format)) -}} @@ -271,6 +272,7 @@ {{- end -}} {{- end -}} {{- end -}} + {{- end -}} {{- dict "Content" .Content "Ruby" $params.ruby "Fraction" $params.fraction | partial "function/content.html" | safeHTML -}} |