Blog: Fix categories, blog single page template

This commit is contained in:
jtbx 2023-10-05 23:02:20 +02:00
commit ad72231459
17 changed files with 157 additions and 43 deletions

View file

@ -11,7 +11,7 @@
{{ .Content }}
</div>
{{- $events := where (.Site.GetPage "blog").Pages ".Params.kind" "event" }}
{{- $events := where (.Site.GetPage "blog").Pages ".Params.categories" "event" }}
{{- $upcoming := where $events ".Params.date" "ge" now }}
{{ if $upcoming}}
<div class="announcements">