Theme: Display articles for 5 days (+6 hours)

This commit is contained in:
jtbx 2026-06-08 22:00:24 +02:00
commit 22ac93080c

View file

@ -28,7 +28,7 @@
{{- end }}
{{- $article := where (.Site.GetPage "blog").Pages ".Params.categories" "article" }}
{{- $articleDisplayTime := time.ParseDuration "-30h" }}
{{- $articleDisplayTime := time.ParseDuration "-126h" }}
{{- $articleNew := where $article ".Params.publishDate" "ge" (time.Now.Add $articleDisplayTime) }}
{{ if $articleNew }}
<div class="announcements">