Skip to content

Commit e6a8d43

Browse files
committedAug 19, 2016
jinjify
1 parent 2e72ad7 commit e6a8d43

File tree

3 files changed

+26
-13
lines changed

3 files changed

+26
-13
lines changed
 

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

+6-3
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@
1414
</ul>
1515
{% endif %}
1616
{% if code %}
17+
<h1>{{ title }}
18+
{% if source_link %}
19+
<small><a href="{{ source_link }}">({{ messages("Source") }})</a></small>
20+
{% endif %}
21+
</h1>
1722
{{ code }}
1823
{% endif %}
19-
{% if source_link %}
20-
<p class="sourceline"><a href="{{ source_link }}" id="sourcelink">{{ messages("Source") }}</a></p>
21-
{% endif %}
2224
{% endblock %}
2325

26+

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

+14-8
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,20 @@
22
{% extends 'index.tmpl' %}
33

44
{% block content_header %}
5-
{% if subcategories %}
6-
{{ messages('Subcategories:') }}
7-
<ul>
8-
{% for name, link in subcategories %}
9-
<li><a href="{{ link }}">{{ name|e }}</a></li>
10-
{% endfor %}
11-
</ul>
12-
{% endif %}
5+
<header>
6+
<h1>{{ title|e }}</h1>
7+
{% if description %}
8+
<p>{{ description }}</p>
9+
{% endif %}
10+
{% if subcategories %}
11+
{{ messages('Subcategories:') }}
12+
<ul>
13+
{% for name, link in subcategories %}
14+
<li><a href="{{ link }}">{{ name|e }}</a></li>
15+
{% endfor %}
16+
</ul>
17+
{% endif %}
18+
</header>
1319
{% endblock %}
1420

1521
{% block extra_head %}

Diff for: ‎nikola/data/themes/bootstrap3-jinja/templates/listing.tmpl

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{# -*- coding: utf-8 -*- #}
22
{% extends 'base.tmpl' %}
33
{% import 'crumbs.tmpl' as ui with context %}
4-
54
{% block content %}
65
{{ ui.bar(crumbs) }}
76
{% if folders or files %}
8-
<ul class="list-unstyled">
7+
<ul>
98
{% for name in folders %}
109
<li><a href="{{ name|urlencode }}"><i class="glyphicon glyphicon-folder-open"></i> {{ name|e }}</a>
1110
{% endfor %}
@@ -15,6 +14,11 @@
1514
</ul>
1615
{% endif %}
1716
{% if code %}
17+
<h1>{{ title }}
18+
{% if source_link %}
19+
<small><a href="{{ source_link }}">({{ messages("Source") }})</a></small>
20+
{% endif %}
21+
</h1>
1822
{{ code }}
1923
{% endif %}
2024
{% endblock %}

0 commit comments

Comments
 (0)