mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Make chapters sections to avoid rendering them
Instead of redirecting the chapter pages to a 404 site.
This commit is contained in:
@@ -42,10 +42,10 @@
|
||||
|
||||
{% 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>
|
||||
{% set chapter_section = get_section(path = "edition-3/chapters/" ~ chapter_slug ~ "/_index.md" ) %}
|
||||
<h2>{{ chapter_section.title }}</h2>
|
||||
<div class="chapter-introduction">
|
||||
{{ chapter_page.content | safe }}
|
||||
{{ chapter_section.content | safe }}
|
||||
</div>
|
||||
|
||||
<ul>
|
||||
|
||||
Reference in New Issue
Block a user