Skip to content
Permalink
Browse files

jinjified the modified bootstrap3

  • Loading branch information
ralsina committed Sep 5, 2015
1 parent 0d90abf commit 1aa8e4894a84c90aa4dd0b394b1e548a7e3a09bc
Showing with 3 additions and 29 deletions.
  1. +3 −29 nikola/data/themes/bootstrap3-jinja/templates/base_helper.tmpl
@@ -1,5 +1,5 @@
{# -*- coding: utf-8 -*- #}

{% extends 'base-jinja/templates/base_helper.tmpl' %}
{% import 'annotation_helper.tmpl' as notes with context %}
{% macro html_headstart() %}
<!DOCTYPE html>
@@ -155,33 +155,7 @@ lang="{{ lang }}">
{% endfor %}
{% endmacro %}

{% macro html_feedlinks() %}
{% if rss_link %}
{{ rss_link }}
{% elif generate_rss %}
{% if translations|length > 1 %}
{% for language in translations|sort %}
<link rel="alternate" type="application/rss+xml" title="RSS ({{ language }})" href="{{ _link('rss', None, language) }}">
{% endfor %}
{% else %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ _link('rss', None) }}">
{% endif %}
{% endif %}
{% if generate_atom %}
{% if translations|length > 1 %}
{% for language in translations|sort %}
<link rel="alternate" type="application/atom+xml" title="Atom ({{ language }})" href="{{ _link('index_atom', None, language) }}">
{% endfor %}
{% else %}
<link rel="alternate" type="application/atom+xml" title="Atom" href="{{ _link('index_atom', None) }}">
{% endif %}
{% endif %}
{% endmacro %}

{% macro html_translations() %}
{% for langname in translations|sort %}
{% if langname != lang %}
<li><a href="{{ abs_link(_link("root", None, langname)) }}" rel="alternate" hreflang="{{ langname }}">{{ messages("LANGUAGE", langname) }}</a></li>
{% endif %}
{% endfor %}
{% macro html_feedlinks() %}
{{ parent.html_feedlinks() }}
{% endmacro %}

0 comments on commit 1aa8e48

Please sign in to comment.