lumbung.space/themes/lumbung-theme/layouts/_default/list.html

41 lines
845 B
HTML
Raw Normal View History

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