Skip to content

Commit 308b4a4

Browse files
author
张天赐
committed
ci: 展示文章修改时间
1 parent 0713236 commit 308b4a4

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

layouts/partials/post_meta.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@
88
{{- $scratch.Add "meta" (slice (i18n "modification_date" (.Lastmod | time.Format (default "January 2, 2006" site.Params.DateFormat)))) }}
99
{{- end }}
1010

11-
{{- if (.Param "ShowLastMod") -}}
12-
{{- $formattedDate := .Lastmod | time.Format (default "January 2, 2006" site.Params.DateFormat) -}}
13-
{{- $scratch.Add "meta" (slice (i18n "modification_date" (dict "Date" $formattedDate))) -}}
14-
{{- end }}
15-
1611
{{- if (.Param "ShowReadingTime") -}}
1712
{{- $scratch.Add "meta" (slice (i18n "read_time" .ReadingTime | default (printf "%d min" .ReadingTime))) }}
1813
{{- end }}

0 commit comments

Comments
 (0)