mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Move section template to edition-2 subfolder
This commit is contained in:
19
blog/templates/edition-2/section.html
Normal file
19
blog/templates/edition-2/section.html
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% import "edition-2/macros.html" as macros %}
|
||||||
|
|
||||||
|
{% block title %}{{ section.title }} | {{ config.title }}{% endblock title %}
|
||||||
|
|
||||||
|
{% block main %}
|
||||||
|
|
||||||
|
<h1>{{ section.title }}</h1>
|
||||||
|
|
||||||
|
{% block introduction %}{% endblock introduction %}
|
||||||
|
|
||||||
|
<div class="posts neutral">
|
||||||
|
{% for page in section.pages %}
|
||||||
|
{{ macros::post_link(page=page) }}
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% endblock main %}
|
||||||
@@ -1,19 +1 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "edition-2/section.html" %}
|
||||||
|
|
||||||
{% import "macros.html" as macros %}
|
|
||||||
|
|
||||||
{% block title %}{{ section.title }} | {{ config.title }}{% endblock title %}
|
|
||||||
|
|
||||||
{% block main %}
|
|
||||||
|
|
||||||
<h1>{{ section.title }}</h1>
|
|
||||||
|
|
||||||
{% block introduction %}{% endblock introduction %}
|
|
||||||
|
|
||||||
<div class="posts neutral">
|
|
||||||
{% for page in section.pages %}
|
|
||||||
{{ macros::post_link(page=page) }}
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% endblock main %}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user