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

49 lines
1.1 KiB
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">
2022-01-17 20:38:22 +00:00
{{ range where (.Paginator 13).Pages "Params.hidden" "ne" "true" }}
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" }}
2022-01-07 08:17:10 +00:00
2022-01-13 08:22:22 +00:00
{{- partial "shout_card.html" . -}}
2022-04-20 09:54:37 +00:00
{{ else if in .Params.categories "pen" }}
{{- partial "pen_card.html" . -}}
{{ else if in .Params.categories "book" }}
{{- partial "book.html" . -}}
2022-01-13 08:22:22 +00:00
{{ else if in .Params.categories "page" }}
2022-01-13 08:22:22 +00:00
{{- partial "blank.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>
2022-01-07 08:17:10 +00:00
</main>
2021-12-15 10:09:08 +00:00
{{ end }}