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

41 lines
1.2 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
{{if eq .Section "tv"}}
2022-01-13 08:22:22 +00:00
{{- partial "video_box.html" . -}}
{{ else if eq .Section "events" }}
{{- partial "partials/calendar_card.html" . -}}
{{ else if eq .Section "shouts" }}
{{ if in .Params.sources "pen.lumbung.space" }}
{{- partial "pen_card.html" . -}}
{{ else }}
{{- partial "shout_card.html" . -}}
{{ end }}
{{ else if eq .Section "social" }}
{{- partial "social_card.html" . -}}
{{ else if eq .Section "publications"}}
{{- partial "book_card.html" . -}}
{{ else if eq .Section "sounds"}}
{{- partial "sounds_card.html" . -}}
2022-01-13 08:22:22 +00:00
{{ else }}
{{- partial "card.html" . -}}
{{ end }}
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 }}