2021-12-15 10:09:08 +00:00
|
|
|
{{ define "main" }}
|
2022-01-13 08:22:22 +00:00
|
|
|
<main>
|
|
|
|
<section class='entries'>
|
2022-09-28 12:11:14 +00:00
|
|
|
|
2022-09-25 07:10:37 +00:00
|
|
|
<div class="h-feed">
|
|
|
|
{{ $range := .Site.RegularPages }}
|
|
|
|
{{ $paginator := .Paginate $range }}
|
|
|
|
{{ $pageSize := $paginator.PageSize }}
|
|
|
|
{{ $totalPostsToShow := mul $paginator.PageNumber $pageSize }}
|
|
|
|
{{ range $index, $el := (first $totalPostsToShow .Site.RegularPages) }}
|
|
|
|
|
2022-09-28 12:11:14 +00:00
|
|
|
<div class='post {{if eq .Section "tv"}}tv{{ end }}' {{ if eq $index (sub $totalPostsToShow $pageSize) }}id="newpage"{{ end }}>
|
|
|
|
{{if eq .Section "tv"}}
|
2022-09-15 16:39:33 +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" }}
|
2022-09-28 12:11:14 +00:00
|
|
|
{{- partial "partials/pen_card.html" . -}}
|
2022-09-15 16:39:33 +00:00
|
|
|
{{ else }}
|
2022-09-28 12:11:14 +00:00
|
|
|
{{- partial "partials/shout_card.html" . -}}
|
2022-09-15 16:39:33 +00:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ else if eq .Section "social" }}
|
2022-09-28 12:11:14 +00:00
|
|
|
{{- partial "partials/social_card.html" . -}}
|
2022-09-15 16:39:33 +00:00
|
|
|
|
|
|
|
{{ else if eq .Section "publications"}}
|
2022-09-28 12:11:14 +00:00
|
|
|
{{- partial "partials/book_card.html" . -}}
|
2022-09-15 16:39:33 +00:00
|
|
|
|
|
|
|
{{ else if eq .Section "sounds"}}
|
|
|
|
{{- partial "sounds_card.html" . -}}
|
|
|
|
|
|
|
|
{{ else }}
|
|
|
|
{{- partial "card.html" . -}}
|
|
|
|
{{ end }}
|
2022-09-28 12:11:14 +00:00
|
|
|
</div>
|
2022-08-31 16:17:38 +00:00
|
|
|
{{ end }}
|
2022-01-13 08:22:22 +00:00
|
|
|
</div>
|
2022-09-28 12:11:14 +00:00
|
|
|
|
2022-09-25 07:10:37 +00:00
|
|
|
<div class="page-nav">
|
|
|
|
{{ if and (gt $paginator.TotalPages 1) ($paginator.HasNext) }}
|
2022-10-10 07:35:35 +00:00
|
|
|
<a id="load-more-paginator" class="nextpage" href="{{ $paginator.Next.URL }}#newpage">load more</a>
|
2022-09-25 07:10:37 +00:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
|
2022-04-21 10:29:04 +00:00
|
|
|
<div class="lumbung-radio-player" onclick="window.open('https://lumbungradio.stationofcommons.org', 'Lumbung Radio', 'height=800,width=450')">
|
2022-04-07 17:32:42 +00:00
|
|
|
<svg class="lumbung-radio-play-button" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
|
|
<path d="M7 4V20L20 12L7 4Z" fill="#CA14D4" stroke="#CA14D4" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
|
|
</svg>
|
|
|
|
<span>lumbung radio</span>
|
2022-06-20 16:30:58 +00:00
|
|
|
<img src="/img/lumbung-radio-logo.png" alt="" height="30">
|
2022-04-07 17:32:42 +00:00
|
|
|
</div>
|
2022-09-28 12:11:14 +00:00
|
|
|
|
2022-09-25 07:10:37 +00:00
|
|
|
</section>
|
2022-01-13 08:22:22 +00:00
|
|
|
</main>
|
2022-09-28 12:11:14 +00:00
|
|
|
|
2022-08-31 16:17:38 +00:00
|
|
|
{{ end }}
|