From b23cf81388c9f064923e28d235761991c11f9cb4 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 +- templates/overrides/coffee/post-hero.ninjatpl | 16 +++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/plugin.mod b/plugin.mod index 4e4ba3d..9aae329 100644 --- a/plugin.mod +++ b/plugin.mod @@ -2,7 +2,7 @@ name = "coffee" display_name = "Coffee" scope = "@themes" -version = "0.4.0" +version = "0.4.1" description = "Warm, hand-crafted theme for cafes, bakeries, and slow-craft makers — kraft paper, doodle illustrations, and roasted browns." kind = "theme" categories = ["templates"] diff --git a/templates/overrides/coffee/post-hero.ninjatpl b/templates/overrides/coffee/post-hero.ninjatpl index 3378e50..537fdef 100644 --- a/templates/overrides/coffee/post-hero.ninjatpl +++ b/templates/overrides/coffee/post-hero.ninjatpl @@ -1,15 +1,17 @@ {% 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" %}
-
-

{{ 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{% endif %}
{% 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{% 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 %} -
+

{{ post.title }}

{% if showExcerpt and post.excerpt %}

{{ post.excerpt }}

{% endif %}