Commit e1d0235 1 parent 7439dab commit e1d0235 Copy full SHA for e1d0235
File tree 22 files changed +55
-51
lines changed
22 files changed +55
-51
lines changed Original file line number Diff line number Diff line change 1
1
{# -*- coding: utf-8 -*- #}
2
2
{% extends 'index.tmpl' %}
3
3
{% import 'archive_navigation_helper.tmpl' as archive_nav with context %}
4
- {% import 'translation_link_helper .tmpl' as translation_links with context %}
4
+ {% import 'feeds_translations_helper .tmpl.tmpl ' as feeds_translations with context %}
5
5
6
6
{% block extra_head %}
7
7
{{ super() }}
8
- {{ translation_links .head(archive_name) }}
8
+ {{ feeds_translations .head(archive_name) }}
9
9
{% endblock %}
10
10
11
11
{% block content_header %}
Original file line number Diff line number Diff line change 1
1
{# -*- coding: utf-8 -*- #}
2
2
{% extends 'list_post.tmpl' %}
3
- {% import 'translation_link_helper .tmpl' as translation_links with context %}
3
+ {% import 'feeds_translations_helper .tmpl.tmpl ' as feeds_translations with context %}
4
4
5
5
{% block extra_head %}
6
6
{{ super() }}
7
- {{ translation_links .head(author) }}
7
+ {{ feeds_translations .head(author) }}
8
8
{% endblock %}
9
9
10
10
16
16
<p>{{ description }}</p>
17
17
{% endif %}
18
18
<div class="metadata">
19
- {{ translation_links .feed_link(author) }}
19
+ {{ feeds_translations .feed_link(author) }}
20
20
</div>
21
21
</header>
22
22
{% if posts %}
Original file line number Diff line number Diff line change 1
1
{# -*- coding: utf-8 -*- #}
2
2
{% extends 'index.tmpl' %}
3
- {% import 'translation_link_helper .tmpl' as translation_links with context %}
3
+ {% import 'feeds_translations_helper .tmpl.tmpl ' as feeds_translations with context %}
4
4
5
5
{% block extra_head %}
6
6
{{ super() }}
7
- {{ translation_links .head(author) }}
7
+ {{ feeds_translations .head(author) }}
8
8
{% endblock %}
Original file line number Diff line number Diff line change 1
1
{# -*- coding: utf-8 -*- #}
2
- {% import 'translation_link_helper .tmpl' as translation_links with context %}
2
+ {% import 'feeds_translations_helper .tmpl.tmpl ' as feeds_translations with context %}
3
3
4
4
{% macro html_headstart() %}
5
5
<!DOCTYPE html>
@@ -42,7 +42,7 @@ lang="{{ lang }}">
42
42
{% if meta_generator_tag %}
43
43
<meta name="generator" content="Nikola (getnikola.com)">
44
44
{% endif %}
45
- {{ translation_links .head() }}
45
+ {{ feeds_translations .head() }}
46
46
<link rel="canonical" href="{{ abs_link(permalink) }}">
47
47
48
48
{% if favicons %}
@@ -100,7 +100,7 @@ lang="{{ lang }}">
100
100
101
101
{# This function is deprecated; use feed_helper directly. #}
102
102
{% macro html_feedlinks() %}
103
- {{ translation_links .head() }}
103
+ {{ feeds_translations .head() }}
104
104
{% endmacro %}
105
105
106
106
{% macro html_translations() %}
Original file line number Diff line number Diff line change 1
1
{# -*- coding: utf-8 -*- #}
2
+
3
+ {# Handles both feeds and translations #}
2
4
{% macro head(classification=None) %}
3
5
{% if rss_link %}
4
6
{{ rss_link }}
Original file line number Diff line number Diff line change 3
3
{% import 'math_helper.tmpl' as math with context %}
4
4
{% import 'comments_helper.tmpl' as comments with context %}
5
5
{% import 'pagination_helper.tmpl' as pagination with context %}
6
- {% import 'translation_link_helper .tmpl' as translation_links with context %}
6
+ {% import 'feeds_translations_helper .tmpl.tmpl ' as feeds_translations with context %}
7
7
{% extends 'base.tmpl' %}
8
8
9
9
{% block extra_head %}
16
16
17
17
{% block content %}
18
18
{% block content_header %}
19
- {{ translation_links .translation_link() }}
19
+ {{ feeds_translations .translation_link() }}
20
20
{% endblock %}
21
21
{% if 'main_index' in pagekind %}
22
22
{{ front_index_header }}
Original file line number Diff line number Diff line change 1
1
{# -*- coding: utf-8 -*- #}
2
2
{% extends 'base.tmpl' %}
3
3
{% import 'archive_navigation_helper.tmpl' as archive_nav with context %}
4
- {% import 'translation_link_helper .tmpl' as translation_links with context %}
4
+ {% import 'feeds_translations_helper .tmpl.tmpl ' as feeds_translations with context %}
5
5
6
6
{% block content %}
7
7
<article class="listpage">
8
8
<header>
9
9
<h1>{{ title|e }}</h1>
10
10
</header>
11
11
{{ archive_nav.archive_navigation() }}
12
- {{ translation_links .translation_link() }}
12
+ {{ feeds_translations .translation_link() }}
13
13
{% if items %}
14
14
<ul class="postlist">
15
15
{% for text, link, count in items %}
Original file line number Diff line number Diff line change 1
1
{# -*- coding: utf-8 -*- #}
2
2
{% extends 'base.tmpl' %}
3
3
{% import 'archive_navigation_helper.tmpl' as archive_nav with context %}
4
- {% import 'translation_link_helper .tmpl' as translation_links with context %}
4
+ {% import 'feeds_translations_helper .tmpl.tmpl ' as feeds_translations with context %}
5
5
6
6
{% block content %}
7
7
<article class="listpage">
8
8
<header>
9
9
<h1>{{ title|e }}</h1>
10
10
</header>
11
11
{{ archive_nav.archive_navigation() }}
12
- {{ translation_links .translation_link() }}
12
+ {{ feeds_translations .translation_link() }}
13
13
{% if posts %}
14
14
<ul class="postlist">
15
15
{% for post in posts %}
Original file line number Diff line number Diff line change 1
1
{# -*- coding: utf-8 -*- #}
2
2
{% extends 'index.tmpl' %}
3
- {% import 'translation_link_helper .tmpl' as translation_links with context %}
3
+ {% import 'feeds_translations_helper .tmpl.tmpl ' as feeds_translations with context %}
4
4
5
5
{% block extra_head %}
6
6
{{ super() }}
7
- {{ translation_links .head(section) }}
7
+ {{ feeds_translations .head(section) }}
8
8
{% endblock %}
9
9
10
10
{% block content %}
11
11
<div class="sectionindex">
12
12
<header>
13
13
<h2><a href="{{ _link('section_index', section) }}">{{ title|e }}</a></h2>
14
- {{ translation_links .feed_link(section) }}
14
+ {{ feeds_translations .feed_link(section) }}
15
15
</header>
16
16
{{ super() }}
17
17
</div>
Original file line number Diff line number Diff line change 1
1
{# -*- coding: utf-8 -*- #}
2
2
{% extends 'list_post.tmpl' %}
3
- {% import 'translation_link_helper .tmpl' as translation_links with context %}
3
+ {% import 'feeds_translations_helper .tmpl.tmpl ' as feeds_translations with context %}
4
4
5
5
{% block extra_head %}
6
6
{{ super() }}
7
- {{ translation_links .head(tag) }}
7
+ {{ feeds_translations .head(tag) }}
8
8
{% endblock %}
9
9
10
10
24
24
</ul>
25
25
{% endif %}
26
26
<div class="metadata">
27
- {{ translation_links .feed_link(tag) }}
27
+ {{ feeds_translations .feed_link(tag) }}
28
28
</div>
29
- {{ translation_links .translation_link() }}
29
+ {{ feeds_translations .translation_link() }}
30
30
</header>
31
31
{% if posts %}
32
32
<ul class="postlist">
Original file line number Diff line number Diff line change 1
1
{# -*- coding: utf-8 -*- #}
2
2
{% extends 'index.tmpl' %}
3
- {% import 'translation_link_helper .tmpl' as translation_links with context %}
3
+ {% import 'feeds_translations_helper .tmpl.tmpl ' as feeds_translations with context %}
4
4
5
5
{% block content_header %}
6
6
{{ parent.content_header() }}
22
22
23
23
{% block extra_head %}
24
24
{{ super() }}
25
- {{ translation_links .head(tag) }}
25
+ {{ feeds_translations .head(tag) }}
26
26
{% endblock %}
Original file line number Diff line number Diff line change 1
1
## -*- coding: utf-8 -*-
2
2
<%inherit file="index.tmpl"/>
3
3
<%namespace name="archive_nav" file="archive_navigation_helper.tmpl" import="*"/>
4
- <%namespace name="translation_links " file="translation_link_helper .tmpl" import="*"/>
4
+ <%namespace name="feeds_translations " file="feeds_translations_helper.tmpl .tmpl" import="*"/>
5
5
6
6
<%block name="extra_head">
7
7
${parent.extra_head()}
8
- ${translation_links .head(archive_name)}
8
+ ${feeds_translations .head(archive_name)}
9
9
</%block>
10
10
11
11
<%block name="content_header">
Original file line number Diff line number Diff line change 1
1
## -*- coding: utf-8 -*-
2
2
<%inherit file="list_post.tmpl"/>
3
- <%namespace name="translation_links " file="translation_link_helper .tmpl" import="*"/>
3
+ <%namespace name="feeds_translations " file="feeds_translations_helper.tmpl .tmpl" import="*"/>
4
4
5
5
<%block name="extra_head">
6
6
${parent.extra_head()}
7
- ${translation_links .head(author)}
7
+ ${feeds_translations .head(author)}
8
8
</%block>
9
9
10
10
16
16
<p>${description}</p>
17
17
%endif
18
18
<div class="metadata">
19
- ${translation_links .feed_link(author)}
19
+ ${feeds_translations .feed_link(author)}
20
20
</div>
21
21
</header>
22
22
%if posts:
Original file line number Diff line number Diff line change 1
1
## -*- coding: utf-8 -*-
2
2
<%inherit file="index.tmpl"/>
3
- <%namespace name="translation_links " file="translation_link_helper .tmpl" import="*"/>
3
+ <%namespace name="feeds_translations " file="feeds_translations_helper.tmpl .tmpl" import="*"/>
4
4
5
5
<%block name="extra_head">
6
6
${parent.extra_head()}
7
- ${translation_links .head(author)}
7
+ ${feeds_translations .head(author)}
8
8
</%block>
Original file line number Diff line number Diff line change 1
1
## -*- coding: utf-8 -*-
2
- <%namespace name="translation_links " file="translation_link_helper .tmpl" import="*"/>
2
+ <%namespace name="feeds_translations " file="feeds_translations_helper.tmpl .tmpl" import="*"/>
3
3
4
4
<%def name="html_headstart()">
5
5
<!DOCTYPE html>
@@ -42,7 +42,7 @@ lang="${lang}">
42
42
% if meta_generator_tag:
43
43
<meta name="generator" content="Nikola (getnikola.com)">
44
44
% endif
45
- ${translation_links .head()}
45
+ ${feeds_translations .head()}
46
46
<link rel="canonical" href="${abs_link(permalink)}">
47
47
48
48
%if favicons:
@@ -100,7 +100,7 @@ lang="${lang}">
100
100
101
101
### This function is deprecated; use feed_helper directly.
102
102
<%def name="html_feedlinks()">
103
- ${translation_links .head()}
103
+ ${feeds_translations .head()}
104
104
</%def>
105
105
106
106
<%def name="html_translations()">
Original file line number Diff line number Diff line change 1
1
## -*- coding: utf-8 -*-
2
+
3
+ ## Handles both feeds and translations
2
4
<%def name="head(classification=None)">
3
5
% if rss_link:
4
6
${rss_link}
86
88
%endfor
87
89
</div>
88
90
%endif
89
- </%def>
91
+ </%def>
Original file line number Diff line number Diff line change 3
3
<%namespace name="math" file="math_helper.tmpl"/>
4
4
<%namespace name="comments" file="comments_helper.tmpl"/>
5
5
<%namespace name="pagination" file="pagination_helper.tmpl"/>
6
- <%namespace name="translation_links " file="translation_link_helper .tmpl" import="*"/>
6
+ <%namespace name="feeds_translations " file="feeds_translations_helper.tmpl .tmpl" import="*"/>
7
7
<%inherit file="base.tmpl"/>
8
8
9
9
<%block name="extra_head">
16
16
17
17
<%block name="content">
18
18
<%block name="content_header">
19
- ${translation_links .translation_link()}
19
+ ${feeds_translations .translation_link()}
20
20
</%block>
21
21
% if 'main_index' in pagekind:
22
22
${front_index_header}
Original file line number Diff line number Diff line change 1
1
## -*- coding: utf-8 -*-
2
2
<%inherit file="base.tmpl"/>
3
3
<%namespace name="archive_nav" file="archive_navigation_helper.tmpl" import="*"/>
4
- <%namespace name="translation_links " file="translation_link_helper .tmpl" import="*"/>
4
+ <%namespace name="feeds_translations " file="feeds_translations_helper.tmpl .tmpl" import="*"/>
5
5
6
6
<%block name="content">
7
7
<article class="listpage">
8
8
<header>
9
9
<h1>${title|h}</h1>
10
10
</header>
11
11
${archive_nav.archive_navigation()}
12
- ${translation_links .translation_link()}
12
+ ${feeds_translations .translation_link()}
13
13
%if items:
14
14
<ul class="postlist">
15
15
% for text, link, count in items:
Original file line number Diff line number Diff line change 1
1
## -*- coding: utf-8 -*-
2
2
<%inherit file="base.tmpl"/>
3
3
<%namespace name="archive_nav" file="archive_navigation_helper.tmpl" import="*"/>
4
- <%namespace name="translation_links " file="translation_link_helper .tmpl" import="*"/>
4
+ <%namespace name="feeds_translations " file="feeds_translations_helper.tmpl .tmpl" import="*"/>
5
5
6
6
<%block name="content">
7
7
<article class="listpage">
8
8
<header>
9
9
<h1>${title|h}</h1>
10
10
</header>
11
11
${archive_nav.archive_navigation()}
12
- ${translation_links .translation_link()}
12
+ ${feeds_translations .translation_link()}
13
13
%if posts:
14
14
<ul class="postlist">
15
15
% for post in posts:
Original file line number Diff line number Diff line change 1
1
## -*- coding: utf-8 -*-
2
2
<%inherit file="index.tmpl"/>
3
- <%namespace name="translation_links " file="translation_link_helper .tmpl" import="*"/>
3
+ <%namespace name="feeds_translations " file="feeds_translations_helper.tmpl .tmpl" import="*"/>
4
4
5
5
<%block name="extra_head">
6
6
${parent.extra_head()}
7
- ${translation_links .head(section)}
7
+ ${feeds_translations .head(section)}
8
8
</%block>
9
9
10
10
<%block name="content">
11
11
<div class="sectionindex">
12
12
<header>
13
13
<h2><a href="${_link('section_index', section)}">${title|h}</a></h2>
14
- ${translation_links .feed_link(section)}
14
+ ${feeds_translations .feed_link(section)}
15
15
</header>
16
16
${parent.content()}
17
17
</div>
Original file line number Diff line number Diff line change 1
1
## -*- coding: utf-8 -*-
2
2
<%inherit file="list_post.tmpl"/>
3
- <%namespace name="translation_links " file="translation_link_helper .tmpl" import="*"/>
3
+ <%namespace name="feeds_translations " file="feeds_translations_helper.tmpl .tmpl" import="*"/>
4
4
5
5
<%block name="extra_head">
6
6
${parent.extra_head()}
7
- ${translation_links .head(tag)}
7
+ ${feeds_translations .head(tag)}
8
8
</%block>
9
9
10
10
24
24
</ul>
25
25
%endif
26
26
<div class="metadata">
27
- ${translation_links .feed_link(tag)}
27
+ ${feeds_translations .feed_link(tag)}
28
28
</div>
29
- ${translation_links .translation_link()}
29
+ ${feeds_translations .translation_link()}
30
30
</header>
31
31
%if posts:
32
32
<ul class="postlist">
Original file line number Diff line number Diff line change 1
1
## -*- coding: utf-8 -*-
2
2
<%inherit file="index.tmpl"/>
3
- <%namespace name="translation_links " file="translation_link_helper .tmpl" import="*"/>
3
+ <%namespace name="feeds_translations " file="feeds_translations_helper.tmpl .tmpl" import="*"/>
4
4
5
5
<%block name="content_header">
6
6
${parent.content_header()}
22
22
23
23
<%block name="extra_head">
24
24
${parent.extra_head()}
25
- ${translation_links .head(tag)}
25
+ ${feeds_translations .head(tag)}
26
26
</%block>
You can’t perform that action at this time.
0 commit comments