fix: release accessible post hero

This commit is contained in:
Alex Dunmow 2026-08-20 12:13:30 +08:00
parent 63e396e7d0
commit 58fadffc78
2 changed files with 14 additions and 10 deletions

View File

@ -2,8 +2,11 @@
name = "gotham" name = "gotham"
display_name = "Gotham" display_name = "Gotham"
scope = "@themes" scope = "@themes"
version = "1.2.0" version = "1.2.1"
description = "After-dark identity for a nightlife venue or private members' club. Cinematic near-black luxe, brass hairline accents, letterboxed heroes and tall condensed display type." description = "After-dark identity for a nightlife venue or private members' club. Cinematic near-black luxe, brass hairline accents, letterboxed heroes and tall condensed display type."
kind = "theme" kind = "theme"
categories = ["templates"] categories = ["templates"]
tags = ["dark", "nightlife", "luxury", "club", "cinematic", "brass", "condensed", "hospitality", "events"] tags = ["dark", "nightlife", "luxury", "club", "cinematic", "brass", "condensed", "hospitality", "events"]
[compatibility]
plugin_sdk = ">=0.3.7"

View File

@ -1,18 +1,19 @@
{# post-hero (gotham) — current post from the `post` provider. When the post #} {# Gotham post hero — cinematic framing without sacrificing readable copy. #}
{# has a featured image it becomes an overlaid banner; otherwise a clean text hero. #}
{% set center = align != "left" %} {% set center = align != "left" %}
{% if post.featured_image_url %} {% if post.featured_image_url %}
<section data-block-override="gotham:post-hero" class="hero relative flex min-h-[50vh] flex-col justify-end overflow-hidden bg-background text-foreground{% if class %} {{ class }}{% endif %}"> <section data-block-override="gotham:post-hero" class="post-hero bg-background px-4 py-8 text-foreground sm:px-6 sm:py-10 lg:px-8{% if class %} {{ class }}{% endif %}">
<div class="absolute inset-0 z-0">{% img post.featured_image_url alt=post.featured_image_alt class="h-full w-full object-cover" layout="hero" %}<div class="absolute inset-0 bg-black/70"></div><div class="film-grain absolute inset-0"></div></div> <div data-slot="layout" class="film-grain mx-auto grid w-full max-w-6xl overflow-hidden rounded-none border border-primary/40 bg-card text-card-foreground shadow-sm lg:grid-cols-5">
<div class="relative z-10 mx-auto w-full max-w-4xl px-4 py-14 sm:px-6 lg:px-8 {% if center %}text-center{% endif %}"> <div data-slot="content" class="flex flex-col justify-center p-6 sm:p-8 lg:col-span-3 lg:p-12{% if center %} text-center{% endif %}">
{% if center %}<div class="mb-4 flex items-center justify-center gap-4"><span class="reel-rule w-12"></span><span class="reel-rule w-12"></span></div>{% endif %} {% if center %}<div class="mb-4 flex items-center justify-center gap-4"><span class="reel-rule w-12"></span><span class="reel-rule w-12"></span></div>{% endif %}
<h1 class="reel-caps text-3xl leading-tight text-white sm:text-4xl lg:text-5xl" style="font-family:var(--font-heading, &quot;Antonio&quot;, &quot;Oswald&quot;, Georgia, serif)">{{ post.title }}</h1> <h1 class="reel-caps text-3xl leading-tight text-foreground sm:text-4xl lg:text-5xl" style="font-family:var(--font-heading, &quot;Antonio&quot;, &quot;Oswald&quot;, Georgia, serif)">{{ post.title }}</h1>
{% if showExcerpt and post.excerpt %}<p class="mt-5 max-w-2xl text-lg text-white/80{% if center %} mx-auto{% endif %}" style="font-family:var(--font-body, &quot;Cormorant Garamond&quot;, &quot;Cormorant&quot;, Georgia, serif)">{{ post.excerpt }}</p>{% endif %} {% if showExcerpt and post.excerpt %}<p class="mt-5 max-w-2xl text-lg leading-relaxed text-muted-foreground{% if center %} mx-auto{% endif %}" style="font-family:var(--font-body, &quot;Cormorant Garamond&quot;, &quot;Cormorant&quot;, Georgia, serif)">{{ post.excerpt }}</p>{% endif %}
{% if showMeta %}<div class="mt-6 flex flex-wrap items-center gap-x-3 gap-y-1 text-sm text-white/80{% if center %} justify-center{% endif %}">{% if post.author_name %}<span class="reel-caps text-white">{{ post.author_name }}</span>{% endif %}{% if post.published_at %}<span>{{ post.published_at|date:"F j, Y" }}</span>{% endif %}{% if post.reading_time %}<span>{{ post.reading_time }} min read</span>{% endif %}</div>{% endif %} {% if showMeta %}<div data-slot="meta" class="mt-6 flex flex-wrap items-center gap-x-4 gap-y-2 text-sm text-muted-foreground{% if center %} justify-center{% endif %}">{% if post.author_name %}<span class="reel-caps text-primary">{{ post.author_name }}</span>{% endif %}{% if post.published_at %}<time datetime="{{ post.published_at }}">{{ post.published_at|date:"F j, Y" }}</time>{% endif %}{% if post.reading_time %}<span>{{ post.reading_time }} min read</span>{% endif %}</div>{% endif %}
</div>
<figure data-slot="media" class="min-h-64 overflow-hidden bg-muted lg:col-span-2 lg:min-h-96">{% img post.featured_image_url alt=post.featured_image_alt class="h-full w-full object-cover" layout="third" %}{% attribution post.featured_image_url class="px-4 py-2 text-xs text-muted-foreground" %}</figure>
</div> </div>
</section> </section>
{% else %} {% else %}
<section data-block-override="gotham:post-hero" class="bg-background py-16 text-foreground md:py-20{% if class %} {{ class }}{% endif %}"> <section data-block-override="gotham:post-hero" class="post-hero bg-background py-16 text-foreground md:py-20{% if class %} {{ class }}{% endif %}">
<div class="mx-auto w-full max-w-3xl px-4 {% if center %}text-center{% endif %}"> <div class="mx-auto w-full max-w-3xl px-4 {% if center %}text-center{% endif %}">
{% if center %}<div class="mb-4 flex items-center justify-center gap-4"><span class="reel-rule w-12"></span><span class="reel-rule w-12"></span></div>{% endif %} {% if center %}<div class="mb-4 flex items-center justify-center gap-4"><span class="reel-rule w-12"></span><span class="reel-rule w-12"></span></div>{% endif %}
<h1 class="reel-caps reel-underline text-3xl leading-tight sm:text-4xl lg:text-5xl text-foreground" style="font-family:var(--font-heading, &quot;Antonio&quot;, &quot;Oswald&quot;, Georgia, serif)">{{ post.title }}</h1> <h1 class="reel-caps reel-underline text-3xl leading-tight sm:text-4xl lg:text-5xl text-foreground" style="font-family:var(--font-heading, &quot;Antonio&quot;, &quot;Oswald&quot;, Georgia, serif)">{{ post.title }}</h1>