2026-05-18 16:27:47 +02:00
|
|
|
{{ define "main" }}
|
2026-05-18 17:09:39 +02:00
|
|
|
{{- $issue := index (.Params.issues | default (slice "01")) 0 }}
|
|
|
|
|
{{- $issueURL := printf "/issues/%s/" $issue }}
|
2026-05-18 18:06:55 +02:00
|
|
|
<section id="hero" class="px-[var(--pad)] pt-[clamp(36px,5vw,64px)] pb-[clamp(28px,3.5vw,48px)] border-b border-[var(--rule)]">
|
|
|
|
|
<div class="font-sans font-medium text-[10px] leading-none tracking-[.22em] uppercase text-ink-soft mb-4">
|
2026-05-18 17:09:39 +02:00
|
|
|
№ {{ $issue }} · {{ index (.Params.categories | default (slice "Plate")) 0 }}
|
|
|
|
|
</div>
|
2026-05-18 18:06:55 +02:00
|
|
|
<h1 class="font-display font-normal text-[clamp(48px,7vw,96px)] leading-[0.94] m-0 mb-4"><em>{{ .Title }}</em></h1>
|
|
|
|
|
<p class="font-serif italic text-[clamp(13px,1vw,16px)] leading-[1.65] text-ink-2 max-w-[55ch] m-0">
|
2026-05-18 17:09:39 +02:00
|
|
|
{{ .Params.description }}
|
2026-05-18 18:06:55 +02:00
|
|
|
<a href="{{ $issueURL }}" class="border-b border-current ml-1">Return to issue →</a>
|
2026-05-18 17:09:39 +02:00
|
|
|
</p>
|
2026-05-18 16:27:47 +02:00
|
|
|
</section>
|
|
|
|
|
|
2026-05-18 18:06:55 +02:00
|
|
|
<section id="grid" data-density="default"
|
|
|
|
|
class="grid [grid-template-columns:repeat(auto-fill,minmax(220px,1fr))] gap-[var(--gap)] px-[var(--pad)] py-[var(--gap)]">
|
2026-05-18 17:09:39 +02:00
|
|
|
{{- $termPage := $.Site.GetPage (printf "/issues/%s" $issue) }}
|
|
|
|
|
{{- $posts := cond (ne $termPage nil) $termPage.Pages .Site.RegularPages }}
|
2026-05-18 16:27:47 +02:00
|
|
|
{{- range $i, $p := $posts }}
|
2026-05-18 18:06:55 +02:00
|
|
|
{{- partial "card.html" (dict "Page" $p "Index" $i) }}
|
2026-05-18 16:27:47 +02:00
|
|
|
{{- end }}
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
{{/* Tell JS which slug to open in the lightbox */}}
|
|
|
|
|
<script>window.__ROUX_OPEN_SLUG = "{{ .Params.slug }}";</script>
|
|
|
|
|
{{ end }}
|