Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2eb7bbc

Browse files
committedMay 10, 2015
Moved subcategories header from index.tmpl to tagindex.tmpl where it belongs.
1 parent 1de2d7c commit 2eb7bbc

File tree

4 files changed

+24
-16
lines changed

4 files changed

+24
-16
lines changed
 

Diff for: ‎nikola/data/themes/base-jinja/templates/index.tmpl

+1-8
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,7 @@
1111
{% endblock %}
1212

1313
{% 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 %}
2215
<div class="postindex">
2316
{% for post in posts %}
2417
<article class="h-entry post-{{ post.meta('type') }}">

Diff for: ‎nikola/data/themes/base-jinja/templates/tagindex.tmpl

+11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
{# -*- coding: utf-8 -*- #}
22
{% extends 'index.tmpl' %}
33

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+
415
{% block extra_head %}
516
{{ super() }}
617
{% if translations|length > 1 and generate_atom %}

Diff for: ‎nikola/data/themes/base/templates/index.tmpl

+1-8
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,7 @@
1111
</%block>
1212

1313
<%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>
2215
<div class="postindex">
2316
% for post in posts:
2417
<article class="h-entry post-${post.meta('type')}">

Diff for: ‎nikola/data/themes/base/templates/tagindex.tmpl

+11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
## -*- coding: utf-8 -*-
22
<%inherit file="index.tmpl"/>
33

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+
415
<%block name="extra_head">
516
${parent.extra_head()}
617
%if len(translations) > 1 and generate_atom:

0 commit comments

Comments
 (0)
Please sign in to comment.