File tree 4 files changed +24
-16
lines changed
4 files changed +24
-16
lines changed Original file line number Diff line number Diff line change 11
11
{% endblock %}
12
12
13
13
{% block content %}
14
- {% if subcategories %}
15
- {{ messages('Subcategories:') }}
16
- <ul>
17
- {% for name, link in subcategories %}
18
- <li><a href="{{ link }}">{{ name }}</a></li>
19
- {% endfor %}
20
- </ul>
21
- {% endif %}
14
+ {% block content_header %}{% endblock %}
22
15
<div class="postindex">
23
16
{% for post in posts %}
24
17
<article class="h-entry post-{{ post.meta('type') }}">
Original file line number Diff line number Diff line change 1
1
{# -*- coding: utf-8 -*- #}
2
2
{% extends 'index.tmpl' %}
3
3
4
+ {% block content_header %}
5
+ {% if subcategories %}
6
+ {{ messages('Subcategories:') }}
7
+ <ul>
8
+ {% for name, link in subcategories %}
9
+ <li><a href="{{ link }}">{{ name }}</a></li>
10
+ {% endfor %}
11
+ </ul>
12
+ {% endif %}
13
+ {% endblock %}
14
+
4
15
{% block extra_head %}
5
16
{{ super() }}
6
17
{% if translations|length > 1 and generate_atom %}
Original file line number Diff line number Diff line change 11
11
</%block>
12
12
13
13
<%block name="content">
14
- %if subcategories:
15
- ${messages('Subcategories:')}
16
- <ul>
17
- %for name, link in subcategories:
18
- <li><a href="${link}">${name}</a></li>
19
- %endfor
20
- </ul>
21
- %endif
14
+ <%block name="content_header"></%block>
22
15
<div class="postindex">
23
16
% for post in posts:
24
17
<article class="h-entry post-${post.meta('type')}">
Original file line number Diff line number Diff line change 1
1
## -*- coding: utf-8 -*-
2
2
<%inherit file="index.tmpl"/>
3
3
4
+ <%block name="content_header">
5
+ %if subcategories:
6
+ ${messages('Subcategories:')}
7
+ <ul>
8
+ %for name, link in subcategories:
9
+ <li><a href="${link}">${name}</a></li>
10
+ %endfor
11
+ </ul>
12
+ %endif
13
+ </%block>
14
+
4
15
<%block name="extra_head">
5
16
${parent.extra_head()}
6
17
%if len(translations) > 1 and generate_atom:
You can’t perform that action at this time.
0 commit comments