mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Set chapter title separately
We avoid the anchor link on mouse-over this way.
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
{% set chapter_slug = chapter | slugify %}
|
||||
<div class="posts {{chapter_slug}}">
|
||||
{% set chapter_page = get_page(path = "edition-3/chapters/" ~ chapter_slug ~ ".md" ) %}
|
||||
<h2>{{ chapter_page.title }}</h2>
|
||||
{{ chapter_page.content | safe }}
|
||||
|
||||
{%- endif -%}
|
||||
|
||||
Reference in New Issue
Block a user