Deliver the full conservation-nonprofit theme per OVERRIDE-CONTRACT (Wave A).
- 49 mandatory builtin overrides in templates/overrides/earthen/ (chrome,
marketing, primitives, commerce, blog family, auth surface, page-suggestions),
re-skinned from the frozen builtins into botanical/paper-grain chrome with
all content fields, custom tags, provider vars, HTMX/auth wiring and JS
preserved verbatim. Stale button/card/image/text/heading overrides fixed to
the new field contract (link/style/label, media/text via {% img %}).
- 7 page templates: default, full-width, landing, article, blog-index, contact,
auth.
- Blocks rework: impact_metrics/partner_logos/botanical_divider/footer converted
to builtin overrides (deleted as theme blocks); donation_cta and field_note
kept; impact_report added. Persona blocks now 3.
- 5 presets (all 19 tokens; mossbed/sage-morning/ember-loam are dual-mode).
- Bundled Fraunces + Work Sans woff2 (OFL) in assets/fonts/; fonts.json,
RECOMMENDED_FONTS.md, RECOMMENDED_ICONS.md; required_icon_packs=[lucide].
- Seed: home/about/blog(3 posts)/contact/login as Rootline Trust, contact-form
formConfig.targetTable=contact_submissions + row_inserted email-admins workflow.
- Themed email-safe wrapper; on-theme master pages; CSS-first botanical motion.
Verified: make (build) exit 0, make archive-check exit 0, check-safety exit 0.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
19 lines
1.3 KiB
Plaintext
19 lines
1.3 KiB
Plaintext
{# category-list (earthen) — from the `categories` provider. list or pills. Control flow and field reads preserved; earthen skin only. #}
|
|
{% set pills = style == "pills" %}
|
|
<section data-block-override="earthen:category-list" class="bg-background text-foreground{% if class %} {{ class }}{% endif %}">
|
|
{% if heading %}<h2 class="mb-5 text-sm font-semibold" style="font-family:var(--font-heading, 'Fraunces', 'Playfair Display', Georgia, serif);color:hsl(var(--primary));">{{ heading }}</h2>{% endif %}
|
|
{% if pills %}
|
|
<div class="flex flex-wrap gap-2">
|
|
{% for cat in categories %}
|
|
<a href="{{ cat.url }}" class="inline-flex items-center gap-1.5 rounded-full border border-border bg-card px-4 py-1.5 text-sm text-card-foreground transition-colors hover:border-primary hover:text-primary">{{ cat.name }}{% if showCount %}<span class="text-xs text-accent">{{ cat.post_count }}</span>{% endif %}</a>
|
|
{% endfor %}
|
|
</div>
|
|
{% else %}
|
|
<ul class="space-y-1">
|
|
{% for cat in categories %}
|
|
<li><a href="{{ cat.url }}" class="flex items-center justify-between rounded-lg px-3 py-2.5 text-sm text-muted-foreground transition-colors hover:bg-muted hover:text-primary"><span>{{ cat.name }}</span>{% if showCount %}<span class="rounded-full border border-border px-2 py-0.5 text-xs text-accent">{{ cat.post_count }}</span>{% endif %}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
</section>
|