lumbung.space/themes/lumbung-theme/layouts/index.html

38 lines
793 B
HTML
Raw Normal View History

2021-12-15 10:09:08 +00:00
{{ define "main" }}
2022-01-13 08:22:22 +00:00
<main>
<section class='entries'>
<div class="h-feed">
{{ range (.Paginator 13).Pages }}
2021-12-15 10:09:08 +00:00
2022-01-13 08:22:22 +00:00
{{ if in .Params.categories "tv"}}
{{- partial "video_box.html" . -}}
2021-12-15 10:09:08 +00:00
2022-01-13 08:22:22 +00:00
{{ else if in .Params.categories "calendar" }}
2021-12-15 10:09:08 +00:00
2022-01-13 08:22:22 +00:00
{{- partial "calendar_card.html" . -}}
2021-12-15 10:09:08 +00:00
2022-01-13 08:22:22 +00:00
{{ else if in .Params.categories "network" }}
2021-12-15 10:09:08 +00:00
2022-01-13 08:22:22 +00:00
{{- partial "network_card.html" . -}}
2021-12-15 10:09:08 +00:00
2022-01-13 08:22:22 +00:00
{{ else if in .Params.categories "shouts" }}
2021-12-15 10:09:08 +00:00
2022-01-13 08:22:22 +00:00
{{- partial "shout_card.html" . -}}
2021-12-15 10:09:08 +00:00
2022-01-13 08:22:22 +00:00
{{ else }}
2021-12-15 10:09:08 +00:00
2022-01-13 08:22:22 +00:00
{{- partial "card.html" . -}}
2021-12-15 10:09:08 +00:00
2022-01-13 08:22:22 +00:00
{{ end }}
2021-12-15 10:09:08 +00:00
2022-01-13 08:22:22 +00:00
{{ end }}
</div>
2021-12-15 10:09:08 +00:00
2022-01-13 08:22:22 +00:00
<nav class="pagination">
{{ template "_internal/pagination.html" . }}
</nav>
</main>
2021-12-15 10:09:08 +00:00
{{ end }}