From 6837f6f4f1d0d4f09c2c3eac947c4239e1f0a185 Mon Sep 17 00:00:00 2001 From: stalkerGH Date: Sat, 15 Feb 2025 14:33:37 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20render=20markdown=20in=20pa?= =?UTF-8?q?ge=20titles=20&=20descriptions=20(#486)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: welpo --- templates/archive.html | 2 +- templates/page.html | 6 +++--- templates/partials/cards_pages.html | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/archive.html b/templates/archive.html index 86f2267..f2f9dd3 100644 --- a/templates/archive.html +++ b/templates/archive.html @@ -58,7 +58,7 @@ {{ post.date | date(format="%d %b", locale=date_locale) }} - {{ post.title }} + {{ post.title | markdown(inline=true) | safe }} {% endfor %} diff --git a/templates/page.html b/templates/page.html index 63dbb02..7099297 100644 --- a/templates/page.html +++ b/templates/page.html @@ -108,7 +108,7 @@ Current section extra: {% if current_section %}{{ current_section.extra | json_e

- {{ page.title }} + {{ page.title | markdown(inline=true) | safe }}

    @@ -297,13 +297,13 @@ Current section extra: {% if current_section %}{{ current_section.extra | json_e
    {%- if left_link and left_label and left_title -%}  {{ left_label }} - + {%- endif -%}
    {%- if right_link and right_label and right_title -%} {{ right_label }}  - + {%- endif -%}
    diff --git a/templates/partials/cards_pages.html b/templates/partials/cards_pages.html index abb9f84..0486829 100644 --- a/templates/partials/cards_pages.html +++ b/templates/partials/cards_pages.html @@ -38,10 +38,10 @@ {% endif %}
    -

    {{ page.title }}

    +

    {{ page.title | markdown(inline=true) | safe }}

    {% if page.description %} - {{ page.description }} + {{ page.description | markdown(inline=true) | safe }} {% endif %}