{{ define "main" }}
{{ $range := .Site.RegularPages }} {{ $paginator := .Paginate $range }} {{ $pageSize := $paginator.PageSize }} {{ $totalPostsToShow := mul $paginator.PageNumber $pageSize }} {{ range $index, $el := (first $totalPostsToShow .Site.RegularPages) }}
{{if eq .Section "tv"}} {{- 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 "partials/pen_card.html" . -}} {{ else }} {{- partial "partials/shout_card.html" . -}} {{ end }} {{ else if eq .Section "pen" }} {{ if in .Params.sources "pen.lumbung.space" }} {{- partial "partials/pen_card.html" . -}} {{ end }} {{ else if eq .Section "timeline"}} {{ if in .Params.sources "pen.lumbung.space" }} {{- partial "partials/pen_card.html" . -}} {{ end }} {{ else if eq .Section "social" }} {{- partial "partials/social_card.html" . -}} {{ else if eq .Section "publications"}} {{- partial "partials/book_card.html" . -}} {{ else if eq .Section "sounds"}} {{- partial "sounds_card.html" . -}} {{ else }} {{- partial "card.html" . -}} {{ end }}
{{ end }}
lumbung radio
{{ end }}