Homepage: show 5 featured plates, brand CTA button
Mark five posts (Gothic, Cyberpunk, Dark Fantasy, Urban, Sci-Fi) as featured: true. Homepage grid now filters by that flag instead of showing first 8. CTA button changed from plain black to brand russet. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -6,6 +6,7 @@ slug: "bioluminescent-beauty-at-twilight"
|
|||||||
issues:
|
issues:
|
||||||
- "01"
|
- "01"
|
||||||
image: "bioluminescent-beauty-at-twilight.png"
|
image: "bioluminescent-beauty-at-twilight.png"
|
||||||
|
featured: true
|
||||||
weight: 5
|
weight: 5
|
||||||
categories:
|
categories:
|
||||||
- "Cyberpunk"
|
- "Cyberpunk"
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ slug: "demon-horns-red-throne"
|
|||||||
issues:
|
issues:
|
||||||
- "01"
|
- "01"
|
||||||
image: "demon-horns-red-throne.png"
|
image: "demon-horns-red-throne.png"
|
||||||
|
featured: true
|
||||||
weight: 19
|
weight: 19
|
||||||
categories:
|
categories:
|
||||||
- "Dark Fantasy"
|
- "Dark Fantasy"
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ slug: "gothic-cathedral-red-gown"
|
|||||||
issues:
|
issues:
|
||||||
- "01"
|
- "01"
|
||||||
image: "gothic-cathedral-red-gown.png"
|
image: "gothic-cathedral-red-gown.png"
|
||||||
|
featured: true
|
||||||
weight: 33
|
weight: 33
|
||||||
categories:
|
categories:
|
||||||
- "Gothic"
|
- "Gothic"
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ slug: "paris-bridge-crimson-dusk"
|
|||||||
issues:
|
issues:
|
||||||
- "01"
|
- "01"
|
||||||
image: "paris-bridge-crimson-dusk.png"
|
image: "paris-bridge-crimson-dusk.png"
|
||||||
|
featured: true
|
||||||
weight: 63
|
weight: 63
|
||||||
categories:
|
categories:
|
||||||
- "Urban"
|
- "Urban"
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ slug: "starship-bridge-sci-fi-pilot"
|
|||||||
issues:
|
issues:
|
||||||
- "01"
|
- "01"
|
||||||
image: "starship-bridge-sci-fi-pilot.png"
|
image: "starship-bridge-sci-fi-pilot.png"
|
||||||
|
featured: true
|
||||||
weight: 85
|
weight: 85
|
||||||
categories:
|
categories:
|
||||||
- "Sci-Fi"
|
- "Sci-Fi"
|
||||||
|
|||||||
+4
-3
@@ -3,6 +3,7 @@
|
|||||||
{{- $issuePage := $.Site.GetPage (printf "/issues/%s" $issueNum) }}
|
{{- $issuePage := $.Site.GetPage (printf "/issues/%s" $issueNum) }}
|
||||||
{{- $plates := cond (ne $issuePage nil) $issuePage.Pages .Site.RegularPages }}
|
{{- $plates := cond (ne $issuePage nil) $issuePage.Pages .Site.RegularPages }}
|
||||||
{{- $total := len $plates }}
|
{{- $total := len $plates }}
|
||||||
|
{{- $featured := where .Site.RegularPages ".Params.featured" true }}
|
||||||
|
|
||||||
{{/* ── Hero ── */}}
|
{{/* ── Hero ── */}}
|
||||||
<section id="hero"
|
<section id="hero"
|
||||||
@@ -24,9 +25,9 @@
|
|||||||
<div class="flex items-center gap-4 flex-wrap">
|
<div class="flex items-center gap-4 flex-wrap">
|
||||||
<a href="/issues/{{ $issueNum }}/"
|
<a href="/issues/{{ $issueNum }}/"
|
||||||
class="inline-flex items-center gap-2 px-6 py-3
|
class="inline-flex items-center gap-2 px-6 py-3
|
||||||
bg-ink text-paper
|
bg-roux text-paper
|
||||||
font-sans font-medium text-[11px] leading-none tracking-[.16em] uppercase
|
font-sans font-medium text-[11px] leading-none tracking-[.16em] uppercase
|
||||||
transition-colors duration-200 hover:bg-roux">
|
transition-colors duration-200 hover:bg-roux-deep">
|
||||||
Enter the issue
|
Enter the issue
|
||||||
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg>
|
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg>
|
||||||
</a>
|
</a>
|
||||||
@@ -59,7 +60,7 @@
|
|||||||
{{/* ── Plate preview ── */}}
|
{{/* ── Plate preview ── */}}
|
||||||
<section id="grid"
|
<section id="grid"
|
||||||
class="grid [grid-template-columns:repeat(auto-fill,minmax(220px,1fr))] gap-[var(--gap)] px-[var(--pad)] pt-[var(--gap)] pb-0">
|
class="grid [grid-template-columns:repeat(auto-fill,minmax(220px,1fr))] gap-[var(--gap)] px-[var(--pad)] pt-[var(--gap)] pb-0">
|
||||||
{{- range $i, $p := first 8 $plates }}
|
{{- range $i, $p := $featured }}
|
||||||
{{- partial "card.html" (dict "Page" $p "Index" $i) }}
|
{{- partial "card.html" (dict "Page" $p "Index" $i) }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
Reference in New Issue
Block a user