Skip to content

Commit 08f5ca8

Browse files
committed
fix(metadata-bar): Compare Lastmod and Date correctly
1 parent d281b3a commit 08f5ca8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/partials/components/metadata-bar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
{{- end -}}
3434

3535
{{- /* Show 'Updated' for non-events (like blog posts) */ -}}
36-
{{- if and (ne $type "event") (ne $ctx.Lastmod.Date $ctx.Date) -}}
36+
{{- if and (ne $type "event") (ne $ctx.Lastmod $ctx.Date) -}}
3737
<span class="italic text-gray-500 ml-2">(Updated {{ $ctx.Lastmod.Format (site.Params.dateFormatSingle | default "January 2, 2006") }})</span>
3838
{{- end -}}
3939
</span>

0 commit comments

Comments
 (0)