Layout/whitespace: - Hero: gate min-h-[75vh] + vertical-centering on hasImage so the text-only masthead no longer floats in ~800px of dead space; large display headline via CSS class (was collapsed to 0.72rem by editorial-caps clobbering text-6xl). - Restore heading hierarchy: swap editorial-caps -> editorial-heading on every title/headline element (hero, card, newsletter, contact-form, cta, countdown, feature-grid, team, featured-posts, post-hero, menu-list, hours-location, author-bio-hero, password-reset-form). Masthead wordmarks (navbar/footer) keep editorial-caps by design. - Home "river": constrain to a 48rem reading measure and add vertical rhythm (editorial-river/editorial-flow CSS) so stacked essay cards stop fusing into one seam-y block and body text no longer runs full-bleed wide. - Newsletter: remove stray empty double-hairline artifact (single centered rule). - Image: guard empty src so absent media no longer renders an empty muted box. Mobile / JIT-safety: - New width/spacing/hero-title behavior defined as theme CSS in manifest input_css_append (not JIT-scanned Tailwind), so it always compiles. - Marginalia stack breakpoint widened 768px -> 1023px to match the article grid collapse, so the rail always gets its separator when stacked. Build + check-safety green (32 checks: 19 ok 13 skip). No version bump. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
12 lines
1.7 KiB
Plaintext
12 lines
1.7 KiB
Plaintext
{# image override — plain editorial plate, no ornament frame. Fields mirror builtin: src, alt, caption, size, align, aspectRatio, objectFit. Media resolved via {% img %} (media filter is not registered in the block render path). #}
|
|
{% with size=size|default:"full" align=align|default:"center" objectFit=objectFit|default:"cover" %}
|
|
<figure data-block-override="editorial:image" class="my-8 flex-1 {% if align == "left" %}flex justify-start{% elif align == "right" %}flex justify-end{% else %}flex justify-center{% endif %}{% if class %} {{ class }}{% endif %}">
|
|
{% if src %}<div class="{% if size == "xs" %}max-w-[200px] w-full{% elif size == "sm" %}max-w-[400px] w-full{% elif size == "md" %}max-w-[600px] w-full{% elif size == "lg" %}max-w-[800px] w-full{% else %}w-full{% endif %}">
|
|
<div class="relative overflow-hidden bg-muted {% if aspectRatio == "square" %}aspect-square{% elif aspectRatio == "video" %}aspect-video{% elif aspectRatio == "portrait" %}aspect-[3/4]{% elif aspectRatio == "wide" %}aspect-[21/9]{% endif %}">
|
|
{% if objectFit == "contain" %}{% img src alt=alt class="w-full h-full object-contain" layout=size %}{% elif objectFit == "fill" %}{% img src alt=alt class="w-full h-full object-fill" layout=size %}{% elif objectFit == "none" %}{% img src alt=alt class="w-full h-full object-none" layout=size %}{% else %}{% img src alt=alt class="w-full h-full object-cover" layout=size %}{% endif %}
|
|
</div>
|
|
</div>{% endif %}
|
|
{% if caption %}<figcaption class="mt-3 text-center text-sm italic" style="color:hsl(var(--muted-foreground));font-family:var(--font-body, 'Source Serif 4', Georgia, serif);">{{ caption }}</figcaption>{% endif %}
|
|
</figure>
|
|
{% endwith %}
|