Skip to content
Permalink
Browse files

Rename translation_link_helper.tmpl → feeds_translations_helper.tmpl

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jun 10, 2017
1 parent 7439dab commit e1d0235fbe8730c7b1cf9632ac4f23a7327b0a34
@@ -1,11 +1,11 @@
{# -*- coding: utf-8 -*- #}
{% extends 'index.tmpl' %}
{% import 'archive_navigation_helper.tmpl' as archive_nav with context %}
{% import 'translation_link_helper.tmpl' as translation_links with context %}
{% import 'feeds_translations_helper.tmpl.tmpl' as feeds_translations with context %}

{% block extra_head %}
{{ super() }}
{{ translation_links.head(archive_name) }}
{{ feeds_translations.head(archive_name) }}
{% endblock %}

{% block content_header %}
@@ -1,10 +1,10 @@
{# -*- coding: utf-8 -*- #}
{% extends 'list_post.tmpl' %}
{% import 'translation_link_helper.tmpl' as translation_links with context %}
{% import 'feeds_translations_helper.tmpl.tmpl' as feeds_translations with context %}

{% block extra_head %}
{{ super() }}
{{ translation_links.head(author) }}
{{ feeds_translations.head(author) }}
{% endblock %}


@@ -16,7 +16,7 @@
<p>{{ description }}</p>
{% endif %}
<div class="metadata">
{{ translation_links.feed_link(author) }}
{{ feeds_translations.feed_link(author) }}
</div>
</header>
{% if posts %}
@@ -1,8 +1,8 @@
{# -*- coding: utf-8 -*- #}
{% extends 'index.tmpl' %}
{% import 'translation_link_helper.tmpl' as translation_links with context %}
{% import 'feeds_translations_helper.tmpl.tmpl' as feeds_translations with context %}

{% block extra_head %}
{{ super() }}
{{ translation_links.head(author) }}
{{ feeds_translations.head(author) }}
{% endblock %}
@@ -1,5 +1,5 @@
{# -*- coding: utf-8 -*- #}
{% import 'translation_link_helper.tmpl' as translation_links with context %}
{% import 'feeds_translations_helper.tmpl.tmpl' as feeds_translations with context %}

{% macro html_headstart() %}
<!DOCTYPE html>
@@ -42,7 +42,7 @@ lang="{{ lang }}">
{% if meta_generator_tag %}
<meta name="generator" content="Nikola (getnikola.com)">
{% endif %}
{{ translation_links.head() }}
{{ feeds_translations.head() }}
<link rel="canonical" href="{{ abs_link(permalink) }}">

{% if favicons %}
@@ -100,7 +100,7 @@ lang="{{ lang }}">

{# This function is deprecated; use feed_helper directly. #}
{% macro html_feedlinks() %}
{{ translation_links.head() }}
{{ feeds_translations.head() }}
{% endmacro %}

{% macro html_translations() %}
@@ -1,4 +1,6 @@
{# -*- coding: utf-8 -*- #}

{# Handles both feeds and translations #}
{% macro head(classification=None) %}
{% if rss_link %}
{{ rss_link }}
@@ -3,7 +3,7 @@
{% import 'math_helper.tmpl' as math with context %}
{% import 'comments_helper.tmpl' as comments with context %}
{% import 'pagination_helper.tmpl' as pagination with context %}
{% import 'translation_link_helper.tmpl' as translation_links with context %}
{% import 'feeds_translations_helper.tmpl.tmpl' as feeds_translations with context %}
{% extends 'base.tmpl' %}

{% block extra_head %}
@@ -16,7 +16,7 @@

{% block content %}
{% block content_header %}
{{ translation_links.translation_link() }}
{{ feeds_translations.translation_link() }}
{% endblock %}
{% if 'main_index' in pagekind %}
{{ front_index_header }}
@@ -1,15 +1,15 @@
{# -*- coding: utf-8 -*- #}
{% extends 'base.tmpl' %}
{% import 'archive_navigation_helper.tmpl' as archive_nav with context %}
{% import 'translation_link_helper.tmpl' as translation_links with context %}
{% import 'feeds_translations_helper.tmpl.tmpl' as feeds_translations with context %}

{% block content %}
<article class="listpage">
<header>
<h1>{{ title|e }}</h1>
</header>
{{ archive_nav.archive_navigation() }}
{{ translation_links.translation_link() }}
{{ feeds_translations.translation_link() }}
{% if items %}
<ul class="postlist">
{% for text, link, count in items %}
@@ -1,15 +1,15 @@
{# -*- coding: utf-8 -*- #}
{% extends 'base.tmpl' %}
{% import 'archive_navigation_helper.tmpl' as archive_nav with context %}
{% import 'translation_link_helper.tmpl' as translation_links with context %}
{% import 'feeds_translations_helper.tmpl.tmpl' as feeds_translations with context %}

{% block content %}
<article class="listpage">
<header>
<h1>{{ title|e }}</h1>
</header>
{{ archive_nav.archive_navigation() }}
{{ translation_links.translation_link() }}
{{ feeds_translations.translation_link() }}
{% if posts %}
<ul class="postlist">
{% for post in posts %}
@@ -1,17 +1,17 @@
{# -*- coding: utf-8 -*- #}
{% extends 'index.tmpl' %}
{% import 'translation_link_helper.tmpl' as translation_links with context %}
{% import 'feeds_translations_helper.tmpl.tmpl' as feeds_translations with context %}

{% block extra_head %}
{{ super() }}
{{ translation_links.head(section) }}
{{ feeds_translations.head(section) }}
{% endblock %}

{% block content %}
<div class="sectionindex">
<header>
<h2><a href="{{ _link('section_index', section) }}">{{ title|e }}</a></h2>
{{ translation_links.feed_link(section) }}
{{ feeds_translations.feed_link(section) }}
</header>
{{ super() }}
</div>
@@ -1,10 +1,10 @@
{# -*- coding: utf-8 -*- #}
{% extends 'list_post.tmpl' %}
{% import 'translation_link_helper.tmpl' as translation_links with context %}
{% import 'feeds_translations_helper.tmpl.tmpl' as feeds_translations with context %}

{% block extra_head %}
{{ super() }}
{{ translation_links.head(tag) }}
{{ feeds_translations.head(tag) }}
{% endblock %}


@@ -24,9 +24,9 @@
</ul>
{% endif %}
<div class="metadata">
{{ translation_links.feed_link(tag) }}
{{ feeds_translations.feed_link(tag) }}
</div>
{{ translation_links.translation_link() }}
{{ feeds_translations.translation_link() }}
</header>
{% if posts %}
<ul class="postlist">
@@ -1,6 +1,6 @@
{# -*- coding: utf-8 -*- #}
{% extends 'index.tmpl' %}
{% import 'translation_link_helper.tmpl' as translation_links with context %}
{% import 'feeds_translations_helper.tmpl.tmpl' as feeds_translations with context %}

{% block content_header %}
{{ parent.content_header() }}
@@ -22,5 +22,5 @@

{% block extra_head %}
{{ super() }}
{{ translation_links.head(tag) }}
{{ feeds_translations.head(tag) }}
{% endblock %}
@@ -1,11 +1,11 @@
## -*- coding: utf-8 -*-
<%inherit file="index.tmpl"/>
<%namespace name="archive_nav" file="archive_navigation_helper.tmpl" import="*"/>
<%namespace name="translation_links" file="translation_link_helper.tmpl" import="*"/>
<%namespace name="feeds_translations" file="feeds_translations_helper.tmpl.tmpl" import="*"/>

<%block name="extra_head">
${parent.extra_head()}
${translation_links.head(archive_name)}
${feeds_translations.head(archive_name)}
</%block>

<%block name="content_header">
@@ -1,10 +1,10 @@
## -*- coding: utf-8 -*-
<%inherit file="list_post.tmpl"/>
<%namespace name="translation_links" file="translation_link_helper.tmpl" import="*"/>
<%namespace name="feeds_translations" file="feeds_translations_helper.tmpl.tmpl" import="*"/>

<%block name="extra_head">
${parent.extra_head()}
${translation_links.head(author)}
${feeds_translations.head(author)}
</%block>


@@ -16,7 +16,7 @@
<p>${description}</p>
%endif
<div class="metadata">
${translation_links.feed_link(author)}
${feeds_translations.feed_link(author)}
</div>
</header>
%if posts:
@@ -1,8 +1,8 @@
## -*- coding: utf-8 -*-
<%inherit file="index.tmpl"/>
<%namespace name="translation_links" file="translation_link_helper.tmpl" import="*"/>
<%namespace name="feeds_translations" file="feeds_translations_helper.tmpl.tmpl" import="*"/>

<%block name="extra_head">
${parent.extra_head()}
${translation_links.head(author)}
${feeds_translations.head(author)}
</%block>
@@ -1,5 +1,5 @@
## -*- coding: utf-8 -*-
<%namespace name="translation_links" file="translation_link_helper.tmpl" import="*"/>
<%namespace name="feeds_translations" file="feeds_translations_helper.tmpl.tmpl" import="*"/>

<%def name="html_headstart()">
<!DOCTYPE html>
@@ -42,7 +42,7 @@ lang="${lang}">
% if meta_generator_tag:
<meta name="generator" content="Nikola (getnikola.com)">
% endif
${translation_links.head()}
${feeds_translations.head()}
<link rel="canonical" href="${abs_link(permalink)}">

%if favicons:
@@ -100,7 +100,7 @@ lang="${lang}">

### This function is deprecated; use feed_helper directly.
<%def name="html_feedlinks()">
${translation_links.head()}
${feeds_translations.head()}
</%def>

<%def name="html_translations()">
@@ -1,4 +1,6 @@
## -*- coding: utf-8 -*-

## Handles both feeds and translations
<%def name="head(classification=None)">
% if rss_link:
${rss_link}
@@ -86,4 +88,4 @@
%endfor
</div>
%endif
</%def>
</%def>
@@ -3,7 +3,7 @@
<%namespace name="math" file="math_helper.tmpl"/>
<%namespace name="comments" file="comments_helper.tmpl"/>
<%namespace name="pagination" file="pagination_helper.tmpl"/>
<%namespace name="translation_links" file="translation_link_helper.tmpl" import="*"/>
<%namespace name="feeds_translations" file="feeds_translations_helper.tmpl.tmpl" import="*"/>
<%inherit file="base.tmpl"/>

<%block name="extra_head">
@@ -16,7 +16,7 @@

<%block name="content">
<%block name="content_header">
${translation_links.translation_link()}
${feeds_translations.translation_link()}
</%block>
% if 'main_index' in pagekind:
${front_index_header}
@@ -1,15 +1,15 @@
## -*- coding: utf-8 -*-
<%inherit file="base.tmpl"/>
<%namespace name="archive_nav" file="archive_navigation_helper.tmpl" import="*"/>
<%namespace name="translation_links" file="translation_link_helper.tmpl" import="*"/>
<%namespace name="feeds_translations" file="feeds_translations_helper.tmpl.tmpl" import="*"/>

<%block name="content">
<article class="listpage">
<header>
<h1>${title|h}</h1>
</header>
${archive_nav.archive_navigation()}
${translation_links.translation_link()}
${feeds_translations.translation_link()}
%if items:
<ul class="postlist">
% for text, link, count in items:
@@ -1,15 +1,15 @@
## -*- coding: utf-8 -*-
<%inherit file="base.tmpl"/>
<%namespace name="archive_nav" file="archive_navigation_helper.tmpl" import="*"/>
<%namespace name="translation_links" file="translation_link_helper.tmpl" import="*"/>
<%namespace name="feeds_translations" file="feeds_translations_helper.tmpl.tmpl" import="*"/>

<%block name="content">
<article class="listpage">
<header>
<h1>${title|h}</h1>
</header>
${archive_nav.archive_navigation()}
${translation_links.translation_link()}
${feeds_translations.translation_link()}
%if posts:
<ul class="postlist">
% for post in posts:
@@ -1,17 +1,17 @@
## -*- coding: utf-8 -*-
<%inherit file="index.tmpl"/>
<%namespace name="translation_links" file="translation_link_helper.tmpl" import="*"/>
<%namespace name="feeds_translations" file="feeds_translations_helper.tmpl.tmpl" import="*"/>

<%block name="extra_head">
${parent.extra_head()}
${translation_links.head(section)}
${feeds_translations.head(section)}
</%block>

<%block name="content">
<div class="sectionindex">
<header>
<h2><a href="${_link('section_index', section)}">${title|h}</a></h2>
${translation_links.feed_link(section)}
${feeds_translations.feed_link(section)}
</header>
${parent.content()}
</div>
@@ -1,10 +1,10 @@
## -*- coding: utf-8 -*-
<%inherit file="list_post.tmpl"/>
<%namespace name="translation_links" file="translation_link_helper.tmpl" import="*"/>
<%namespace name="feeds_translations" file="feeds_translations_helper.tmpl.tmpl" import="*"/>

<%block name="extra_head">
${parent.extra_head()}
${translation_links.head(tag)}
${feeds_translations.head(tag)}
</%block>


@@ -24,9 +24,9 @@
</ul>
%endif
<div class="metadata">
${translation_links.feed_link(tag)}
${feeds_translations.feed_link(tag)}
</div>
${translation_links.translation_link()}
${feeds_translations.translation_link()}
</header>
%if posts:
<ul class="postlist">
@@ -1,6 +1,6 @@
## -*- coding: utf-8 -*-
<%inherit file="index.tmpl"/>
<%namespace name="translation_links" file="translation_link_helper.tmpl" import="*"/>
<%namespace name="feeds_translations" file="feeds_translations_helper.tmpl.tmpl" import="*"/>

<%block name="content_header">
${parent.content_header()}
@@ -22,5 +22,5 @@

<%block name="extra_head">
${parent.extra_head()}
${translation_links.head(tag)}
${feeds_translations.head(tag)}
</%block>

0 comments on commit e1d0235

Please sign in to comment.
You can’t perform that action at this time.