🐛 Fixed the post meta display hide when not values.

This commit is contained in:
凡梦星尘
2022-06-01 20:59:42 +08:00
parent bb77f9bfb6
commit 8609746b28
3 changed files with 4 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
{{- if and .Site.Params.postMeta.updated.enable .Site.Params.postMeta.updated.anotherDay }}
{{- if gt .Lastmod .PublishDate }}
{{- if and .Lastmod (gt .Lastmod .PublishDate) }}
{{ $modTime := .Lastmod.Format .Site.Params.timeFormat }}
<span class="post-meta-item">
<span class="post-meta-item-icon">