lumbung-theme/layouts/index.html

30 lines
504 B
HTML
Raw Normal View History

2021-07-08 10:42:38 +02:00
{{ define "main" }}
<section class='entries'>
<div class="h-feed">
{{ range (.Paginator 10).Pages }}
2021-07-15 17:44:57 +02:00
{{ if in .Params.categories "tv"}}
2021-07-09 10:59:04 +02:00
{{- partial "video_box.html" . -}}
2021-07-08 10:42:38 +02:00
2021-07-15 17:44:57 +02:00
{{ else if in .Params.categories "calendar" }}
2021-07-08 10:42:38 +02:00
2021-07-09 10:59:04 +02:00
{{- partial "calendar_card.html" . -}}
2021-07-08 10:42:38 +02:00
2021-07-09 10:59:04 +02:00
{{ else }}
2021-07-08 10:42:38 +02:00
2021-07-09 10:59:04 +02:00
{{- partial "card.html" . -}}
{{ end }}
2021-07-08 10:42:38 +02:00
{{ end }}
</div>
<nav class="pagination">
{{ template "_internal/pagination.html" . }}
</nav>
</main>
{{ end }}