feat(series): add custom placeholders in intro

Custom placeholders are user-defined and can be used in both headline and description.
This commit is contained in:
ZzMzaw 2024-10-05 08:04:50 +02:00
parent e1bdb01b6a
commit 71a2409640
5 changed files with 106 additions and 1 deletions

View file

@ -8,7 +8,7 @@ tags = ["showcase", "tutorial"]
[extra]
series_page_introduction = "link"
series_page_introduction_variables = { position = "first", toto = "TOTO!!! "}
series_page_introduction_variables = { position = "first", foo = "FOO!!!"}
+++

View file

@ -8,6 +8,7 @@ tags = ["showcase", "tutorial"]
[extra]
series_page_introduction = "summary"
series_page_introduction_variables = { position = "second", foo = "FOO FOO!!!"}
+++

View file

@ -8,6 +8,7 @@ tags = ["showcase", "tutorial", "FAQ"]
[extra]
series_page_introduction = "custom"
series_page_introduction_variables = { position = "third", foo = "FOO FOO FOO!!!"}
+++
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

View file

@ -14,6 +14,13 @@ post_listing_index_reversed = false
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>
"""
+++
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.