Blog: Fix categories, blog single page template
This commit is contained in:
parent
e8eff8de55
commit
ad72231459
17 changed files with 157 additions and 43 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue