Skip to content

Commit 0753829

Browse files
authored
fix: handle missing date format fallback (#291)
1 parent d804a45 commit 0753829

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/partials/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h1>{{ .Title | markdownify }}</h1>
2525

2626
{{ if $displayDate }}
2727
<p class="post-date">{{ dateFormat (or .Site.Params.dateFormat "January 2, 2006") .Date}}
28-
{{ if lt .Date .Lastmod }} | Updated {{ dateFormat .Site.Params.dateFormat .Lastmod }}{{ end }}
28+
{{ if lt .Date .Lastmod }} | Updated {{ dateFormat (or .Site.Params.dateFormat "January 2, 2006") .Lastmod }}{{ end }}
2929
</p>
3030
{{ end }}
3131

0 commit comments

Comments
 (0)