mirror of
https://github.com/welpo/tabi.git
synced 2025-10-11 07:46:15 +02:00
feat(series): render markdown on series description
This commit is contained in:
parent
8c31aca81f
commit
3e61cc4ab8
2 changed files with 7 additions and 5 deletions
|
@ -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.
|
||||
|
|
|
@ -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 -%}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue