From b8eed1ec176073bbbcd12392da3244971ceb51b0 Mon Sep 17 00:00:00 2001 From: Richard Mortier Date: Sun, 6 Apr 2025 03:01:31 +0200 Subject: process markdown in titles and subtitles in index and recents (#217) --- templates/macros/macros.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'templates/macros/macros.html') diff --git a/templates/macros/macros.html b/templates/macros/macros.html index c02f190..6c7b85c 100644 --- a/templates/macros/macros.html +++ b/templates/macros/macros.html @@ -6,7 +6,7 @@ {%- set uglyurls = config.extra.uglyurls | default(value=false) -%} {%- if config.extra.search_library %}{%- if config.extra.search_library == "offline" %}{% set uglyurls = true %}{% endif %}{% endif %}
- {{ page.title }} + {{ page.title | markdown(inline=true) | safe }}
{%- endmacro page_listing %} @@ -25,7 +25,7 @@ {%- macro title_post(page, config) %} {%- set uglyurls = config.extra.uglyurls | default(value=false) -%} {%- if config.extra.search_library %}{%- if config.extra.search_library == "offline" %}{% set uglyurls = true %}{% endif %}{% endif %} -

{{ page.title }}

+

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

{%- endmacro title_post %} @@ -100,7 +100,7 @@ {%- macro title_index(page, config) %} {%- set uglyurls = config.extra.uglyurls | default(value=false) -%} {%- if config.extra.search_library %}{%- if config.extra.search_library == "offline" %}{% set uglyurls = true %}{% endif %}{% endif %} - {% if config.extra.title_size_index %}{% endif %}{{ page.title }}{% if config.extra.title_size_index %}{% endif %} + {% if config.extra.title_size_index %}{% endif %}{{ page.title | markdown(inline=true) | safe }}{% if config.extra.title_size_index %}{% endif %} {%- endmacro title_index %} -- cgit v1.3.1