Skip to content
Snippets Groups Projects
Commit 89fd09c7 authored by alexisben's avatar alexisben
Browse files

handle no event message

parent 50b09051
No related branches found
No related tags found
No related merge requests found
......@@ -16,21 +16,26 @@
"description" .description
)}}
<div class="events events--{{- $layout -}}">
{{ range .events }}
{{ $event := site.GetPage .file }}
{{ with $event }}
{{ partial "events/event" (dict
"event" .
"layout" $layout
"show_summary" $show_summary
"show_category" $show_category
"show_status" $show_status
"heading" (printf "h%d" $block.ranks.children)
) }}
{{ if .events }}
<div class="events events--{{- $layout -}}">
{{ range .events }}
{{ $event := site.GetPage .file }}
{{ with $event }}
{{ partial "events/event" (dict
"event" .
"layout" $layout
"show_summary" $show_summary
"show_category" $show_category
"show_status" $show_status
"heading" (printf "h%d" $block.ranks.children)
) }}
{{ end }}
{{ end }}
{{ end }}
</div>
</div>
{{ else if .no_event_message }}
<p>{{ partial "PrepareHTML" .no_event_message }}</p>
{{ end }}
</div>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment