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 a53db5e

Browse files
committedMay 5, 2015
jinjified
1 parent f99aebd commit a53db5e

File tree

4 files changed

+41
-10
lines changed

4 files changed

+41
-10
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,13 @@
11
{# -*- coding: utf-8 -*- #}
22
{% extends 'index.tmpl' %}
3+
4+
{% block extra_head %}
5+
{{ super() }}
6+
{% if translations|length > 1 and generate_atom %}
7+
{% for language in translations %}
8+
<link rel="alternate" type="application/atom+xml" title="Atom for the {{ archive_name }} section ({{ language }})" href="{{ _link("archive_atom", archive_name, language) }}">
9+
{% endfor %}
10+
{% elif generate_atom %}
11+
<link rel="alternate" type="application/atom+xml" title="Atom for the {{ archive_name }} archive" href="{{ _link("archive_atom", archive_name) }}">
12+
{% endif %}
13+
{% endblock %}

‎nikola/data/themes/base-jinja/templates/base_helper.tmpl

+9
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,15 @@ lang="{{ lang }}">
9393
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ _link('rss', None) }}">
9494
{% endif %}
9595
{% endif %}
96+
{% if generate_atom %}
97+
{% if translations|length > 1 %}
98+
{% for language in translations %}
99+
<link rel="alternate" type="application/atom+xml" title="Atom ({{ language }})" href="{{ _link('index_atom', None, language) }}">
100+
{% endfor %}
101+
{% else %}
102+
<link rel="alternate" type="application/atom+xml" title="Atom" href="{{ _link('index_atom', None) }}">
103+
{% endif %}
104+
{% endif %}
96105
{% endmacro %}
97106

98107
{% macro html_translations() %}
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,13 @@
11
{# -*- coding: utf-8 -*- #}
22
{% extends 'index.tmpl' %}
3+
4+
{% block extra_head %}
5+
{{ super() }}
6+
{% if translations|length > 1 and generate_atom %}
7+
{% for language in translations %}
8+
<link rel="alternate" type="application/atom+xml" title="Atom for the {{ tag }} section ({{ language }})" href="{{ _link(kind + "_atom", tag, language) }}">
9+
{% endfor %}
10+
{% elif generate_atom %}
11+
<link rel="alternate" type="application/atom+xml" title="Atom for the {{ tag }} section" href="{{ _link("tag" + "_atom", tag) }}">
12+
{% endif %}
13+
{% endblock %}

‎nikola/data/themes/bootstrap3-jinja/templates/base_helper.tmpl

+10-10
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ lang="{{ lang }}">
6868
{% macro late_load_js() %}
6969
{% if use_bundles %}
7070
{% if use_cdn %}
71-
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
72-
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
73-
<script src="/assets/js/all.js"></script>
74-
{% else %}
75-
<script src="/assets/js/all-nocdn.js"></script>
71+
{% for url in cdn_js_urls %}
72+
<script src="{{ url }}"></script>
73+
{% endfor %}
7674
{% endif %}
75+
<script src="/assets/js/all.js"></script>
7776
{% else %}
7877
{% if use_cdn %}
78+
FOO
7979
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
8080
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
8181
{% else %}
@@ -96,14 +96,14 @@ lang="{{ lang }}">
9696
{% macro html_stylesheets() %}
9797
{% if use_bundles %}
9898
{% if use_cdn %}
99-
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
100-
<link href="/assets/css/all.css" rel="stylesheet" type="text/css">
101-
{% else %}
102-
<link href="/assets/css/all-nocdn.css" rel="stylesheet" type="text/css">
99+
{% for url in cdn_css_urls %}
100+
<link href="{{ url }}" rel="stylesheet">
101+
{% endfor %}
103102
{% endif %}
103+
<link href="/assets/css/all.css" rel="stylesheet" type="text/css">
104104
{% else %}
105105
{% if use_cdn %}
106-
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
106+
- <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
107107
{% else %}
108108
<link href="/assets/css/bootstrap.min.css" rel="stylesheet" type="text/css">
109109
{% endif %}

0 commit comments

Comments
 (0)
Please sign in to comment.