edited post

This commit is contained in:
Morgan 2023-10-29 11:19:00 +09:00
parent 430ed2a3fc
commit ca6e11e46a
1 changed files with 3 additions and 4 deletions

View File

@ -13,9 +13,8 @@
{{- end }}
<div class="post-meta">
{{- $scratch := newScratch }}
{{- if not .Date.IsZero -}}
{{- $scratch.Add "meta" (slice (printf "<span title='%s'>%s</span>" (.Date) (.Date | time.Format (default "January 2, 2006" site.Params.DateFormat)))) }}
{{- (slice (printf "<span title='%s'>%s</span>" (.Date) (.Date | time.Format (default "January 2, 2006" site.Params.DateFormat)))) }}
{{- end }}
</div>
</header>