Simplify banner and improve readability when used

This commit is contained in:
daudix
2024-07-14 08:17:36 +03:00
parent 35733fe153
commit 792a4a14ea
2 changed files with 7 additions and 9 deletions

View File

@ -5,10 +5,10 @@
{%- set date_locale = macros_translate::translate(key="date_locale", default="en_US", language_strings=language_strings) -%}
<article>
{%- if page.extra.banner -%}
<img id="banner" class="full-bleed{% if page.extra.banner_bright %} bright{% endif %}" src="{{ current_url | safe }}{{ page.extra.banner }}" />
<img id="banner" class="full-bleed" src="{{ current_url | safe }}{{ page.extra.banner }}" />
{%- endif -%}
<h1>{{ page.title }}</h1>
<h1 {% if page.extra.banner %}class="banner-margin"{%- endif -%}>{{ page.title }}</h1>
{%- if page.date -%}
<small>