diff --git a/plugin.mod b/plugin.mod index c113acb..94b3eab 100644 --- a/plugin.mod +++ b/plugin.mod @@ -2,7 +2,7 @@ name = "noir" display_name = "Noir" scope = "@themes" -version = "0.4.0" +version = "0.4.1" description = "Detective and true-crime dossier theme: case-file cards, typewriter type, redaction bars, evidence board and film grain. High-key gallery by day, darkroom black by night." kind = "theme" categories = ["templates"] diff --git a/templates/overrides/noir/post-hero.ninjatpl b/templates/overrides/noir/post-hero.ninjatpl index ac481e8..b7c8012 100644 --- a/templates/overrides/noir/post-hero.ninjatpl +++ b/templates/overrides/noir/post-hero.ninjatpl @@ -1,16 +1,18 @@ -{# noir override — post-hero; preserves post.* reads, {% img %}, showExcerpt/showMeta/align, featured-image + no-image branches. #} +{# Noir post hero — stark type beside a grain-treated monochrome frame. #} {% 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 grayscale" 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 read{% 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 read{% endif %}
{% endif %} +
+
{% img post.featured_image_url alt=post.featured_image_alt class="h-full w-full object-cover grayscale" 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 %}