🐛 Fixed the post meta display hide when not values.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{{- if .Site.Params.postMeta.created }}
|
||||
{{ $createdTime := .PublishDate.Format .Site.Params.timeFormat }}
|
||||
{{ $timeF := .Site.Params.timeFormat }}
|
||||
{{ $createdTime := (.Date.Format $timeF) | default (.PublishDate.Format $timeF) }}
|
||||
<span class="post-meta-item">
|
||||
<span class="post-meta-item-icon">
|
||||
<i class="far fa-calendar"></i>
|
||||
|
||||
Reference in New Issue
Block a user