lumbung-theme/layouts/index.html

30 lines
500 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-09 10:59:04 +02:00
{{ if in .Params.category "tv"}}
{{- partial "video_box.html" . -}}
2021-07-08 10:42:38 +02:00
2021-07-09 10:59:04 +02:00
{{ else if in .Params.category "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 }}