From 5d0d7674155b6c393aac302886cf93948229acd6 Mon Sep 17 00:00:00 2001 From: Alex Dunmow Date: Sat, 5 Sep 2026 21:14:13 +0800 Subject: [PATCH] chore: checkpoint all working changes --- plugin.mod | 2 +- .../overrides/earthen/post-hero.ninjatpl | 20 ++++++++++--------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/plugin.mod b/plugin.mod index 2d63991..cc3fe8c 100644 --- a/plugin.mod +++ b/plugin.mod @@ -2,7 +2,7 @@ name = "earthen" display_name = "Earthen" scope = "@themes" -version = "0.5.0" +version = "0.5.1" description = "Botanical nonprofit theme in moss, clay, sage and cream — hand-illustrated motifs for cause-driven sites." kind = "theme" categories = ["templates"] diff --git a/templates/overrides/earthen/post-hero.ninjatpl b/templates/overrides/earthen/post-hero.ninjatpl index 78c4fce..f1b9945 100644 --- a/templates/overrides/earthen/post-hero.ninjatpl +++ b/templates/overrides/earthen/post-hero.ninjatpl @@ -1,17 +1,19 @@ -{# post-hero (earthen) — current post from the `post` provider. Banner when a featured image exists, else a clean text hero. Branches, field reads and image wiring preserved; earthen skin only. #} +{# Earthen post hero — tactile paper copy beside independently framed media. #} {% set center = align != "left" %} {% if post.featured_image_url %} -
-
{% img post.featured_image_url alt=post.featured_image_alt class="h-full w-full object-cover" layout="hero" %}
-
-{% if center %}{% endif %} -

{{ post.title }}

-{% if showExcerpt and post.excerpt %}

{{ post.excerpt }}

{% endif %} -{% if showMeta %}
{% if post.author_name %}{{ post.author_name }}{% endif %}{% if post.published_at %}{{ post.published_at|date:"F j, Y" }}{% endif %}{% if post.reading_time %}{{ post.reading_time }} min read{% endif %}
{% endif %} +
+
+
+{% if center %}{% endif %} +

{{ post.title }}

+{% if showExcerpt and post.excerpt %}

{{ post.excerpt }}

{% endif %} +{% if showMeta %}
{% if post.author_name %}{{ post.author_name }}{% endif %}{% if post.published_at %}{% endif %}{% if post.reading_time %}{{ post.reading_time }} min read{% endif %}
{% endif %} +
+
{% 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" %}
{% else %} -
+
{% if center %}{% endif %}

{{ post.title }}