feat(series): render markdown on series description

This commit is contained in:
welpo 2024-10-08 15:05:53 +02:00 committed by ZzMzaw
parent 8c31aca81f
commit 3e61cc4ab8
2 changed files with 7 additions and 5 deletions

View file

@ -17,9 +17,11 @@ series_page_introduction = "none"
series_page_introduction_placeholders = ["$POSITION", "$FOO", "$BAR"]
series_page_headline = "This article is the $POSITION of the series '$SERIES_HTML_LINK' ($FOO)"
series_page_description = """
<p>You can put whatever you want in a custom description.</p>
<p>All variable are accessibles, including custom ones.</p>
<hr>
You can put whatever you want in a custom description.
**All** variable are accessibles, including custom ones.
Markdown is rendered.
"""
+++
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

View file

@ -91,7 +91,7 @@ Parameters:
<section class="series-page-introduction">
<details>
<summary>{{ series_page_headline | safe }}</summary>
{{ series_page_description | safe }}
{{ series_page_description | markdown | safe }}
<nav>
{{ series_pages_ordered_list | safe }}
</nav>
@ -99,7 +99,7 @@ Parameters:
</section>
{%- elif series_page_introduction == "custom" -%}
<section class="series-page-introduction-custom">
{{ series_page_description | safe }}
{{ series_page_description | markdown | safe }}
</section>
{%- endif -%}
{%- endif -%}