summaryrefslogtreecommitdiffstats
path: root/nikola/data/themes/bootstrap3/templates
diff options
context:
space:
mode:
Diffstat (limited to 'nikola/data/themes/bootstrap3/templates')
-rw-r--r--nikola/data/themes/bootstrap3/templates/authors.tmpl17
-rw-r--r--nikola/data/themes/bootstrap3/templates/base.tmpl4
-rw-r--r--nikola/data/themes/bootstrap3/templates/base_helper.tmpl5
-rw-r--r--nikola/data/themes/bootstrap3/templates/gallery.tmpl6
-rw-r--r--nikola/data/themes/bootstrap3/templates/listing.tmpl4
-rw-r--r--nikola/data/themes/bootstrap3/templates/post.tmpl4
-rw-r--r--nikola/data/themes/bootstrap3/templates/tags.tmpl8
7 files changed, 34 insertions, 14 deletions
diff --git a/nikola/data/themes/bootstrap3/templates/authors.tmpl b/nikola/data/themes/bootstrap3/templates/authors.tmpl
new file mode 100644
index 0000000..2d3bbf5
--- /dev/null
+++ b/nikola/data/themes/bootstrap3/templates/authors.tmpl
@@ -0,0 +1,17 @@
+## -*- coding: utf-8 -*-
+<%inherit file="base.tmpl"/>
+
+<%block name="content">
+% if items:
+ <h2>${messages("Authors")}</h2>
+% endif
+% if items:
+ <ul class="list-inline">
+ % for text, link in items:
+ % if text not in hidden_authors:
+ <li><a class="reference badge" href="${link}">${text|h}</a></li>
+ % endif
+ % endfor
+ </ul>
+% endif
+</%block>
diff --git a/nikola/data/themes/bootstrap3/templates/base.tmpl b/nikola/data/themes/bootstrap3/templates/base.tmpl
index 5f90733..ab7805b 100644
--- a/nikola/data/themes/bootstrap3/templates/base.tmpl
+++ b/nikola/data/themes/bootstrap3/templates/base.tmpl
@@ -24,11 +24,11 @@ ${template_hooks['extra_head']()}
</button>
<a class="navbar-brand" href="${abs_link(_link("root", None, lang))}">
%if logo_url:
- <img src="${logo_url}" alt="${blog_title}" id="logo">
+ <img src="${logo_url}" alt="${blog_title|h}" id="logo">
%endif
% if show_blog_title:
- <span id="blog-title">${blog_title}</span>
+ <span id="blog-title">${blog_title|h}</span>
% endif
</a>
</div><!-- /.navbar-header -->
diff --git a/nikola/data/themes/bootstrap3/templates/base_helper.tmpl b/nikola/data/themes/bootstrap3/templates/base_helper.tmpl
index a1e7508..587a933 100644
--- a/nikola/data/themes/bootstrap3/templates/base_helper.tmpl
+++ b/nikola/data/themes/bootstrap3/templates/base_helper.tmpl
@@ -26,9 +26,11 @@ dir="rtl" \
lang="${lang}">
<head>
<meta charset="utf-8">
+ % if use_base_tag:
<base href="${abs_link(permalink)}">
+ % endif
%if description:
- <meta name="description" content="${description}">
+ <meta name="description" content="${description|h}">
%endif
<meta name="viewport" content="width=device-width, initial-scale=1">
%if title == blog_title:
@@ -38,6 +40,7 @@ lang="${lang}">
%endif
${html_stylesheets()}
+ <meta content="${theme_color}" name="theme-color">
${html_feedlinks()}
<link rel="canonical" href="${abs_link(permalink)}">
diff --git a/nikola/data/themes/bootstrap3/templates/gallery.tmpl b/nikola/data/themes/bootstrap3/templates/gallery.tmpl
index 3d6c01a..af0c194 100644
--- a/nikola/data/themes/bootstrap3/templates/gallery.tmpl
+++ b/nikola/data/themes/bootstrap3/templates/gallery.tmpl
@@ -17,7 +17,7 @@
%if folders:
<ul>
% for folder, ftitle in folders:
- <li><a href="${folder}"><i class="glyphicon glyphicon-folder-open"></i>&nbsp;${ftitle}</a></li>
+ <li><a href="${folder}"><i class="glyphicon glyphicon-folder-open"></i>&nbsp;${ftitle|h}</a></li>
% endfor
</ul>
%endif
@@ -27,8 +27,8 @@
<noscript>
<ul class="thumbnails">
%for image in photo_array:
- <li><a href="${image['url']}" class="thumbnail image-reference" title="${image['title']}">
- <img src="${image['url_thumb']}" alt="${image['title']}" /></a>
+ <li><a href="${image['url']}" class="thumbnail image-reference" title="${image['title']|h}">
+ <img src="${image['url_thumb']}" alt="${image['title']|h}" /></a>
%endfor
</ul>
</noscript>
diff --git a/nikola/data/themes/bootstrap3/templates/listing.tmpl b/nikola/data/themes/bootstrap3/templates/listing.tmpl
index 7b09e3e..8c43806 100644
--- a/nikola/data/themes/bootstrap3/templates/listing.tmpl
+++ b/nikola/data/themes/bootstrap3/templates/listing.tmpl
@@ -7,10 +7,10 @@ ${ui.bar(crumbs)}
%if folders or files:
<ul class="list-unstyled">
% for name in folders:
- <li><a href="${name}"><i class="glyphicon glyphicon-folder-open"></i> ${name}</a>
+ <li><a href="${name|u}"><i class="glyphicon glyphicon-folder-open"></i> ${name|h}</a>
% endfor
% for name in files:
- <li><a href="${name}.html"><i class="glyphicon glyphicon-file"></i> ${name}</a>
+ <li><a href="${name|u}.html"><i class="glyphicon glyphicon-file"></i> ${name|h}</a>
% endfor
</ul>
%endif
diff --git a/nikola/data/themes/bootstrap3/templates/post.tmpl b/nikola/data/themes/bootstrap3/templates/post.tmpl
index 8d9f88a..469c1e1 100644
--- a/nikola/data/themes/bootstrap3/templates/post.tmpl
+++ b/nikola/data/themes/bootstrap3/templates/post.tmpl
@@ -10,9 +10,9 @@
<meta name="keywords" content="${post.meta('keywords')|h}">
% endif
%if post.description():
- <meta name="description" itemprop="description" content="${post.description()}">
+ <meta name="description" itemprop="description" content="${post.description()|h}">
%endif
- <meta name="author" content="${post.author()}">
+ <meta name="author" content="${post.author()|h}">
%if post.prev_post:
<link rel="prev" href="${post.prev_post.permalink()}" title="${post.prev_post.title()|h}" type="text/html">
%endif
diff --git a/nikola/data/themes/bootstrap3/templates/tags.tmpl b/nikola/data/themes/bootstrap3/templates/tags.tmpl
index ead3b0a..061bb39 100644
--- a/nikola/data/themes/bootstrap3/templates/tags.tmpl
+++ b/nikola/data/themes/bootstrap3/templates/tags.tmpl
@@ -2,16 +2,16 @@
<%inherit file="base.tmpl"/>
<%block name="content">
-<h1>${title}</h1>
+<h1>${title|h}</h1>
% if cat_items:
% if items:
<h2>${messages("Categories")}</h2>
% endif
% for text, full_name, path, link, indent_levels, indent_change_before, indent_change_after in cat_hierarchy:
% for i in range(indent_change_before):
- <ul class="unstyled">
+ <ul class="list-inline">
% endfor
- <li><a class="reference badge" href="${link}">${text}</a>
+ <li><a class="reference badge" href="${link}">${text|h}</a>
% if indent_change_after <= 0:
</li>
% endif
@@ -30,7 +30,7 @@
<ul class="list-inline">
% for text, link in items:
% if text not in hidden_tags:
- <li><a class="reference badge" href="${link}">${text}</a></li>
+ <li><a class="reference badge" href="${link}">${text|h}</a></li>
% endif
% endfor
</ul>