Add "DRAFTED" watermark to drafted posts

This commit is contained in:
daudix
2024-10-11 23:42:15 +03:00
parent 6db17e7bbd
commit 800efa802a
3 changed files with 36 additions and 0 deletions

View File

@ -12,6 +12,12 @@
{%- endif -%}
<article>
{%- if page.draft -%}
<div id="draft-watermark">
<span>{{- macros_translate::translate(key="drafted", default="Drafted", language_strings=language_strings) -}}</span>
</div>
{%- endif -%}
{%- if page.extra.banner -%}
<div id="banner-container">
<img id="banner" class="full-bleed{% if page.extra.banner_pixels %} pixels{% endif %}" src="{{ current_url ~ page.extra.banner }}" {% if config.markdown.lazy_async_image %}decoding="async" loading="lazy"{% endif %} />