aboutsummaryrefslogtreecommitdiffstats
path: root/nikola/data/themes/base
diff options
context:
space:
mode:
Diffstat (limited to 'nikola/data/themes/base')
-rw-r--r--nikola/data/themes/base/assets/css/rst_base.css322
-rw-r--r--nikola/data/themes/base/messages/messages_ca.py4
-rw-r--r--nikola/data/themes/base/messages/messages_mi.py54
-rw-r--r--nikola/data/themes/base/messages/messages_oc.py49
-rw-r--r--nikola/data/themes/base/messages/messages_tzm.py49
-rw-r--r--nikola/data/themes/base/templates/base_helper.tmpl2
-rw-r--r--nikola/data/themes/base/templates/comments_helper.tmpl56
-rw-r--r--nikola/data/themes/base/templates/comments_helper_dummy.tmpl10
8 files changed, 278 insertions, 268 deletions
diff --git a/nikola/data/themes/base/assets/css/rst_base.css b/nikola/data/themes/base/assets/css/rst_base.css
index 429f7b5..51f92b4 100644
--- a/nikola/data/themes/base/assets/css/rst_base.css
+++ b/nikola/data/themes/base/assets/css/rst_base.css
@@ -1,7 +1,7 @@
/* Minimal style sheet for the HTML output of Docutils. */
/* */
/* :Author: Günter Milde, based on html4css1.css by David Goodger */
-/* :Id: $Id: minimal.css 7952 2016-07-26 18:15:59Z milde $ */
+/* :Id: $Id: minimal.css 8642 2021-03-26 13:51:14Z milde $ */
/* :Copyright: © 2015 Günter Milde. */
/* :License: Released under the terms of the `2-Clause BSD license`_, */
/* in short: */
@@ -20,83 +20,66 @@
/* .. _CSS2.1: http://www.w3.org/TR/CSS2 */
/* .. _validates: http://jigsaw.w3.org/css-validator/validator$link */
-/* alignment of text and inline objects inside block objects*/
-.align-left { text-align: left; }
-.align-right { text-align: right; }
-.align-center { clear: both; text-align: center; }
-.align-top { vertical-align: top; }
-.align-middle { vertical-align: middle; }
-.align-bottom { vertical-align: bottom; }
-
/* titles */
-h1.title, p.subtitle {
- text-align: center;
-}
-p.admonition-title,
p.topic-title,
-p.sidebar-title,
-p.rubric,
+p.admonition-title,
p.system-message-title {
font-weight: bold;
}
-h1 + p.subtitle,
-h1 + p.section-subtitle {
- font-size: 1.6em;
+p.sidebar-title,
+p.rubric {
+ font-weight: bold;
+ font-size: larger;
+}
+p.rubric {
+ color: maroon;
}
-h2 + p.section-subtitle { font-size: 1.28em; }
p.subtitle,
p.section-subtitle,
p.sidebar-subtitle {
font-weight: bold;
margin-top: -0.5em;
}
-p.sidebar-title,
-p.rubric {
- font-size: larger;
+h1 + p.subtitle {
+ font-size: 1.6em;
}
-p.rubric { color: maroon; }
-a.toc-backref {
+h2 + p.section-subtitle, a.toc-backref {
color: black;
- text-decoration: none; }
+ text-decoration: none;
+}
/* Warnings, Errors */
-div.caution p.admonition-title,
-div.attention p.admonition-title,
-div.danger p.admonition-title,
-div.error p.admonition-title,
-div.warning p.admonition-title,
-div.system-messages h1,
-div.error,
-span.problematic,
-p.system-message-title {
+.system-messages h2,
+.system-message-title,
+span.problematic {
color: red;
}
-/* inline literals */
-span.docutils.literal {
+/* Inline Literals */
+.docutils.literal {
font-family: monospace;
white-space: pre-wrap;
}
-/* do not wraph at hyphens and similar: */
+/* do not wrap at hyphens and similar: */
.literal > span.pre { white-space: nowrap; }
/* Lists */
/* compact and simple lists: no margin between items */
-.simple li, .compact li,
-.simple ul, .compact ul,
-.simple ol, .compact ol,
-.simple > li p, .compact > li p,
-dl.simple > dd, dl.compact > dd {
+.simple li, .simple ul, .simple ol,
+.compact li, .compact ul, .compact ol,
+.simple > li p, dl.simple > dd,
+.compact > li p, dl.compact > dd {
margin-top: 0;
margin-bottom: 0;
}
/* Table of Contents */
-/*div.topic.contents { margin: 0; }*/
-ul.auto-toc {
+.topic.contents { margin: 0.5em 0; }
+.topic.contents ul.auto-toc {
list-style-type: none;
- padding-left: 1.5em; }
+ padding-left: 1.5em;
+}
/* Enumerated Lists */
ol.arabic { list-style: decimal }
@@ -105,14 +88,14 @@ ol.upperalpha { list-style: upper-alpha }
ol.lowerroman { list-style: lower-roman }
ol.upperroman { list-style: upper-roman }
-dt span.classifier { font-style: italic }
-dt span.classifier:before {
+/* Definition Lists and Derivatives */
+dt .classifier { font-style: italic }
+dt .classifier:before {
font-style: normal;
margin: 0.5em;
content: ":";
}
-
-/* Field Lists and drivatives */
+/* Field Lists and similar */
/* bold field name, content starts on the same line */
dl.field-list > dt,
dl.option-list > dt,
@@ -130,7 +113,7 @@ dl.citation > dt {
dl.field-list > dd,
dl.option-list > dd,
dl.docinfo > dd {
- margin-left: 9em; /* ca. 14 chars in the test examples */
+ margin-left: 9em; /* ca. 14 chars in the test examples, fit all Docinfo fields */
}
/* start field-body on a new line after long field names */
dl.field-list > dd > *:first-child,
@@ -147,18 +130,20 @@ dl.docinfo > dt:after {
}
/* Bibliographic Fields (docinfo) */
-pre.address { font: inherit; }
-dd.authors > p { margin: 0; }
+dl.docinfo pre.address {
+ font: inherit;
+ margin: 0.5em 0;
+}
+dl.docinfo > dd.authors > p { margin: 0; }
/* Option Lists */
-dl.option-list { margin-left: 40px; }
dl.option-list > dt { font-weight: normal; }
span.option { white-space: nowrap; }
/* Footnotes and Citations */
-dl.footnote.superscript > dd {margin-left: 1em; }
-dl.footnote.brackets > dd {margin-left: 2em; }
-dl > dt.label { font-weight: normal; }
+dl.footnote.superscript > dd { margin-left: 1em; }
+dl.footnote.brackets > dd { margin-left: 2em; }
+dl.footnote > dt { font-weight: normal; }
a.footnote-reference.brackets:before,
dt.label > span.brackets:before { content: "["; }
a.footnote-reference.brackets:after,
@@ -166,94 +151,74 @@ dt.label > span.brackets:after { content: "]"; }
a.footnote-reference.superscript,
dl.footnote.superscript > dt.label {
vertical-align: super;
- font-size: smaller;
+ font-size: small;
}
-dt.label > span.fn-backref { margin-left: 0.2em; }
-dt.label > span.fn-backref > a { font-style: italic; }
-
-/* Line Blocks */
-div.line-block { display: block; }
-div.line-block div.line-block {
- margin-top: 0;
- margin-bottom: 0;
- margin-left: 40px;
+dt.label > span.fn-backref {
+ margin-left: 0.2em;
+ font-weight: normal;
}
+dt.label > span.fn-backref > a { font-style: italic; }
-/* Figures, Images, and Tables */
-.figure.align-left,
-img.align-left,
-object.align-left,
-table.align-left {
- margin-right: auto;
-}
-.figure.align-center,
-img.align-center,
-object.align-center {
- margin-left: auto;
+/* Alignment */
+.align-left {
+ text-align: left;
margin-right: auto;
- display: block;
}
-table.align-center {
+.align-center {
+ clear: both;
+ text-align: center;
margin-left: auto;
margin-right: auto;
}
-.figure.align-right,
-img.align-right,
-object.align-right,
-table.align-right {
+.align-right {
+ text-align: right;
margin-left: auto;
}
-/* reset inner alignment in figures and tables */
-div.align-left, div.align-center, div.align-right,
-table.align-left, table.align-center, table.align-right
-{ text-align: inherit }
+.align-top { vertical-align: top; }
+.align-middle { vertical-align: middle; }
+.align-bottom { vertical-align: bottom; }
-/* Admonitions and System Messages */
-div.admonition,
-div.system-message,
-div.sidebar{
- margin: 40px;
- border: medium outset;
- padding-right: 1em;
- padding-left: 1em;
+/* reset inner alignment in figures and tables */
+figure.align-left, figure.align-right,
+table.align-left, table.align-center, table.align-right {
+ text-align: inherit;
}
-/* Sidebar */
-div.sidebar {
+/* Text Blocks */
+blockquote,
+div.topic,
+aside.topic {
+ margin: 1em 2em;
+}
+.sidebar,
+.admonition,
+.system-message {
+ border: thin solid;
+ margin: 1em 2em;
+ padding: 0.5em 1em;
+}
+.sidebar {
width: 30%;
max-width: 26em;
float: right;
clear: right;
}
+div.line-block { display: block; }
+div.line-block div.line-block, pre { margin-left: 2em; }
-/* Text Blocks */
-div.topic,
-pre.literal-block,
-pre.doctest-block,
-pre.math,
-pre.code {
- margin-right: 40px;
- margin-left: 40px;
+/* Code line numbers: dropped when copying text from the page */
+pre.code .ln { display: none; }
+pre.code code:before {
+ content: attr(data-lineno); /* …, none) fallback not supported by any browser */
+ color: gray;
}
-pre.code .ln { color: gray; } /* line numbers */
/* Tables */
-table.docutils { border-collapse: collapse; }
-table.docutils > td, table.docutils > th {
- border-style: solid;
- border-color: silver;
- padding: 0 1ex;
- border-width: thin;
-}
-table.docutils > td > p:first-child, table.docutils > th > p:first-child { margin-top: 0; }
-table.docutils > td > p, table.docutils > th > p { margin-bottom: 0; }
-table.docutils > caption {
- text-align: left;
- margin-bottom: 0.25em
-}
+td > p:first-child, th > p:first-child { margin-top: 0; }
+td > p, th > p { margin-bottom: 0; }
-table.borderless td, table.borderless th {
+.borderless td, .borderless th {
border: 0;
padding: 0;
padding-right: 0.5em /* separate table cells */
@@ -263,7 +228,7 @@ table.borderless td, table.borderless th {
/* Rules for easy reading and pre-defined style variants. */
/* */
/* :Author: Günter Milde, based on html4css1.css by David Goodger */
-/* :Id: $Id: plain.css 7952 2016-07-26 18:15:59Z milde $ */
+/* :Id: $Id: plain.css 8636 2021-03-19 00:23:33Z milde $ */
/* :Copyright: © 2015 Günter Milde. */
/* :License: Released under the terms of the `2-Clause BSD license`_, */
/* in short: */
@@ -281,10 +246,7 @@ table.borderless td, table.borderless th {
/* Document Structure */
/* ****************** */
-/* Sections */
-
/* Transitions */
-
hr.docutils {
width: 80%;
margin-top: 1em;
@@ -292,32 +254,19 @@ hr.docutils {
clear: both;
}
-/* Paragraphs */
-/* ========== */
-
-/* vertical space (parskip) */
-/*p, ol, ul, dl,*/
-/*div.line-block,*/
-/*table{*/
- /*margin-top: 0.5em;*/
- /*margin-bottom: 0.5em;*/
-/*}*/
-/*h1, h2, h3, h4, h5, h6, */
dl > dd {
margin-bottom: 0.5em;
}
-/* Lists */
-/* ========== */
-
-/* Definition Lists */
+/* Lists */
+/* ===== */
-dl > dd p:first-child { margin-top: 0; }
-/* :last-child is not part of CSS 2.1 (introduced in CSS 3) */
-/* dl > dd p:last-child { margin-bottom: 0; } */
+/* Separate list entries in compound lists */
+dl > dd, ol > li,
-/* lists nested in definition lists */
-/* :only-child is not part of CSS 2.1 (introduced in CSS 3) */
+/* Definition Lists */
+/* Indent lists nested in definition lists */
+/* (:only-child is new in CSS 3) */
dd > ul:only-child, dd > ol:only-child { padding-left: 1em; }
/* Description Lists */
@@ -358,31 +307,16 @@ div.dedication p.topic-title {
font-style: normal;
}
-/* Citations */
-dl.citation dt.label {
- font-weight: bold;
-}
-span.fn-backref {
- font-weight: normal;
-}
-
-/* Text Blocks */
-/* ============ */
+/* Text Blocks */
+/* =========== */
-/* Literal Blocks */
+/* Literal Blocks */
pre.literal-block, pre.doctest-block,
pre.math, pre.code {
- margin-left: 1.5em;
- margin-right: 1.5em
+ font-family: monospace;
}
-/* Block Quotes */
-
-blockquote,
-div.topic {
- margin-left: 1.5em;
- margin-right: 1.5em
-}
+/* Block Quotes */
blockquote > table,
div.topic > table {
margin-top: 0;
@@ -394,8 +328,8 @@ div.topic p.attribution {
margin-left: 20%;
}
-/* Tables */
-/* ====== */
+/* Tables */
+/* ====== */
/* th { vertical-align: bottom; } */
@@ -422,11 +356,11 @@ table.numbered > caption:before {
font-weight: bold;
}
-/* Explicit Markup Blocks */
-/* ====================== */
+/* Explicit Markup Blocks */
+/* ====================== */
-/* Footnotes and Citations */
-/* ----------------------- */
+/* Footnotes and Citations */
+/* ----------------------- */
/* line on the left */
dl.footnote {
@@ -435,40 +369,56 @@ dl.footnote {
border-left-width: thin;
}
-/* Directives */
-/* ---------- */
+/* Directives */
+/* ---------- */
-/* Body Elements */
-/* ~~~~~~~~~~~~~ */
+/* Body Elements */
+/* ~~~~~~~~~~~~~ */
/* Images and Figures */
/* let content flow to the side of aligned images and figures */
-.figure.align-left,
+figure.align-left,
img.align-left,
+video.align-left,
object.align-left {
- display: block;
clear: left;
float: left;
- margin-right: 1em
+ margin-right: 1em;
}
-.figure.align-right,
+figure.align-right,
img.align-right,
+video.align-right,
object.align-right {
- display: block;
clear: right;
float: right;
- margin-left: 1em
+ margin-left: 1em;
}
-/* Sidebar */
+/* Numbered figures */
+figure.numbered > figcaption > p:before {
+ counter-increment: figure;
+ content: "Figure " counter(figure) ": ";
+ font-weight: bold;
+}
-/* Move into the margin. In a layout with fixed margins, */
-/* it can be moved into the margin completely. */
-div.sidebar {
+/* Admonitions and System Messages */
+.caution p.admonition-title,
+.attention p.admonition-title,
+.danger p.admonition-title,
+.error p.admonition-title,
+.warning p.admonition-title,
+div.error {
+ color: red;
+}
+
+/* Sidebar */
+/* Move right. In a layout with fixed margins, */
+/* it can be moved into the margin. */
+aside.sidebar {
width: 30%;
max-width: 26em;
margin-left: 1em;
- margin-right: -5.5%;
- background-color: #ffffee ;
+ margin-right: -2%;
+ background-color: #ffffee;
}
diff --git a/nikola/data/themes/base/messages/messages_ca.py b/nikola/data/themes/base/messages/messages_ca.py
index 0143a85..c5d8de8 100644
--- a/nikola/data/themes/base/messages/messages_ca.py
+++ b/nikola/data/themes/base/messages/messages_ca.py
@@ -2,7 +2,7 @@
"""Autogenerated file, do not edit. Submit translations on Transifex."""
MESSAGES = {
- "%d min remaining to read": "% min restants per a llegir",
+ "%d min remaining to read": "%d min restants per a llegir",
"(active)": "(actiu)",
"Also available in:": "També disponible en:",
"Archive": "Arxiu",
@@ -45,5 +45,5 @@ MESSAGES = {
"Write your post here.": "Escriviu la vostra entrada aquí.",
"old posts, page %d": "entrades antigues, pàgina %d",
"page %d": "pàgina %d",
- "updated": "",
+ "updated": "actualitzat",
}
diff --git a/nikola/data/themes/base/messages/messages_mi.py b/nikola/data/themes/base/messages/messages_mi.py
index 21f9739..853744a 100644
--- a/nikola/data/themes/base/messages/messages_mi.py
+++ b/nikola/data/themes/base/messages/messages_mi.py
@@ -2,48 +2,48 @@
"""Autogenerated file, do not edit. Submit translations on Transifex."""
MESSAGES = {
- "%d min remaining to read": "",
+ "%d min remaining to read": "%d meneti ka toe ki te korero",
"(active)": "(mātātoa)",
- "Also available in:": "",
+ "Also available in:": "Kei te wātea ano hoki",
"Archive": "Pūranga",
- "Atom feed": "",
+ "Atom feed": "Atom whangai",
"Authors": "Kaituhi",
"Categories": "Kāwai",
- "Comments": "Kōrerohia",
+ "Comments": "Nga korero",
"LANGUAGE": " Māori",
"Languages:": "Reo",
- "More posts about %s": "",
- "Newer posts": "",
- "Next post": "",
+ "More posts about %s": "Ētahi atu pou e pā ana ki %s",
+ "Newer posts": "Nga pou hou",
+ "Next post": "Pou muri",
"Next": "Panuku",
- "No posts found.": "",
+ "No posts found.": "Kāore i kitea he korero.",
"Nothing found.": "Kīhai i kitea",
- "Older posts": "",
- "Original site": "",
- "Posted:": "",
- "Posts about %s": "",
- "Posts by %s": "",
- "Posts for year %s": "",
- "Posts for {month_day_year}": "",
- "Posts for {month_year}": "",
- "Previous post": "",
+ "Older posts": "Nga pou tawhito",
+ "Original site": "Pae tukutuku",
+ "Posted:": "Tukua",
+ "Posts about %s": "Tuhinga e pā ana ki %s",
+ "Posts by %s": "Tuhinga na %s",
+ "Posts for year %s": "Tuhinga mo te tau %s",
+ "Posts for {month_day_year}": "Tuhinga mo {month_day_year}",
+ "Posts for {month_year}": "Tuhinga mo {month_year}",
+ "Previous post": "Tuhinga o mua",
"Previous": "Whakamuri",
- "Publication date": "",
+ "Publication date": "Pukapuka tuhi",
"RSS feed": "Whāngai RSS",
- "Read in English": "",
- "Read more": "",
- "Skip to main content": "",
+ "Read in English": "Pānuihia i te Maori",
+ "Read more": "Pānuihia atu",
+ "Skip to main content": "Haere ki te ihirangi matua",
"Source": "Matapuna",
- "Subcategories:": "",
+ "Subcategories:": "Ngā kōpaki",
"Tags and Categories": "Tūtohu me nga kāwai",
"Tags": "Tūtohu",
- "Toggle navigation": "",
- "Uncategorized": "",
+ "Toggle navigation": "Takahuri whakatere",
+ "Uncategorized": "Korekorekore",
"Up": "Ki runga",
"Updates": "Whakahou",
- "Write your page here.": "",
- "Write your post here.": "",
- "old posts, page %d": "",
+ "Write your page here.": "Tuhia taau whārangi ki konei.",
+ "Write your post here.": "Tuhia to pou i konei.",
+ "old posts, page %d": "nga pou tawhito, whārangi %d",
"page %d": "whārangi %d",
"updated": "whakahoutia",
}
diff --git a/nikola/data/themes/base/messages/messages_oc.py b/nikola/data/themes/base/messages/messages_oc.py
new file mode 100644
index 0000000..a51a9f3
--- /dev/null
+++ b/nikola/data/themes/base/messages/messages_oc.py
@@ -0,0 +1,49 @@
+# -*- encoding:utf-8 -*-
+"""Autogenerated file, do not edit. Submit translations on Transifex."""
+
+MESSAGES = {
+ "%d min remaining to read": "%d min demorantas de lectura",
+ "(active)": "(actiu)",
+ "Also available in:": "Tanben disponibla en :",
+ "Archive": "Archius",
+ "Atom feed": "Flux Atom",
+ "Authors": "Autors",
+ "Categories": "Categorias",
+ "Comments": "Comentaris",
+ "LANGUAGE": "Occitan",
+ "Languages:": "Lengas :",
+ "More posts about %s": "Mai de publicacion sus %s",
+ "Newer posts": "Publicacions mai recentas",
+ "Next post": "Publicacion seguenta",
+ "Next": "Seguent",
+ "No posts found.": "Cap de publicacion pas trobada.",
+ "Nothing found.": "Res pas trobat.",
+ "Older posts": "Publicacions mai ancianas",
+ "Original site": "Site original",
+ "Posted:": "Publicada lo :",
+ "Posts about %s": "Publicacions tocant %s",
+ "Posts by %s": "Publicat per %s",
+ "Posts for year %s": "Publicacions per annada %s",
+ "Posts for {month_day_year}": "Publicacions per {month_day_year}",
+ "Posts for {month_year}": "Publicacions per {month_year} ",
+ "Previous post": "Publicacion precedenta",
+ "Previous": "Precedent",
+ "Publication date": "Data de publicacion",
+ "RSS feed": "Flux RSS",
+ "Read in English": "Legir en occitan",
+ "Read more": "Ne legir mai",
+ "Skip to main content": "Passar al contengut màger",
+ "Source": "Font",
+ "Subcategories:": "Jos-categorias :",
+ "Tags and Categories": "Etiquetas e categorias",
+ "Tags": "Etiquetas",
+ "Toggle navigation": "Alternar la navigacion",
+ "Uncategorized": "Sens categoria",
+ "Up": "Amont",
+ "Updates": "Actualizacions",
+ "Write your page here.": "Escrivètz vòstra pagina aquí.",
+ "Write your post here.": "Escrivètz vòstra publicacion aquí.",
+ "old posts, page %d": "publicacions ancianas, pagina %d",
+ "page %d": "pagina %d",
+ "updated": "actualizada",
+}
diff --git a/nikola/data/themes/base/messages/messages_tzm.py b/nikola/data/themes/base/messages/messages_tzm.py
new file mode 100644
index 0000000..e9ea75b
--- /dev/null
+++ b/nikola/data/themes/base/messages/messages_tzm.py
@@ -0,0 +1,49 @@
+# -*- encoding:utf-8 -*-
+"""Autogenerated file, do not edit. Submit translations on Transifex."""
+
+MESSAGES = {
+ "%d min remaining to read": "",
+ "(active)": "",
+ "Also available in:": "",
+ "Archive": "",
+ "Atom feed": "",
+ "Authors": "",
+ "Categories": "",
+ "Comments": "Ixfawalen",
+ "LANGUAGE": "Tamaziɣt",
+ "Languages:": "",
+ "More posts about %s": "",
+ "Newer posts": "",
+ "Next post": "",
+ "Next": "",
+ "No posts found.": "",
+ "Nothing found.": "",
+ "Older posts": "",
+ "Original site": "",
+ "Posted:": "",
+ "Posts about %s": "",
+ "Posts by %s": "",
+ "Posts for year %s": "",
+ "Posts for {month_day_year}": "",
+ "Posts for {month_year}": "",
+ "Previous post": "",
+ "Previous": "",
+ "Publication date": "",
+ "RSS feed": "",
+ "Read in English": "Ɣer s tneglizt",
+ "Read more": "Ɣer uggar",
+ "Skip to main content": "",
+ "Source": "Asagem",
+ "Subcategories:": "",
+ "Tags and Categories": "",
+ "Tags": "",
+ "Toggle navigation": "",
+ "Uncategorized": "",
+ "Up": "",
+ "Updates": "",
+ "Write your page here.": "",
+ "Write your post here.": "",
+ "old posts, page %d": "",
+ "page %d": "",
+ "updated": "",
+}
diff --git a/nikola/data/themes/base/templates/base_helper.tmpl b/nikola/data/themes/base/templates/base_helper.tmpl
index 18801ed..684165d 100644
--- a/nikola/data/themes/base/templates/base_helper.tmpl
+++ b/nikola/data/themes/base/templates/base_helper.tmpl
@@ -82,7 +82,7 @@ lang="${lang}">
<script src="https://polyfill.io/v3/polyfill.js?features=Intl.RelativeTimeFormat.%7Elocale.${luxon_locales[lang]}"></script>
% endif
% if use_cdn:
- <script src="https://cdn.jsdelivr.net/npm/luxon@1.25.0/build/global/luxon.min.js" integrity="sha256-OVk2fwTRcXYlVFxr/ECXsakqelJbOg5WCj1dXSIb+nU=" crossorigin="anonymous"></script>
+ <script src="https://cdn.jsdelivr.net/npm/luxon@1.28.0/build/global/luxon.min.js" integrity="sha256-l1u7Y5ze+ENf/T9ORPa3E642/uMgHUFa1KnqzFCcWEY=" crossorigin="anonymous"></script>
% else:
<script src="/assets/js/luxon.min.js"></script>
% endif
diff --git a/nikola/data/themes/base/templates/comments_helper.tmpl b/nikola/data/themes/base/templates/comments_helper.tmpl
index 002499e..cfd52f2 100644
--- a/nikola/data/themes/base/templates/comments_helper.tmpl
+++ b/nikola/data/themes/base/templates/comments_helper.tmpl
@@ -1,63 +1,15 @@
## -*- coding: utf-8 -*-
-<%namespace name="disqus" file="comments_helper_disqus.tmpl"/>
-<%namespace name="intensedebate" file="comments_helper_intensedebate.tmpl"/>
-<%namespace name="muut" file="comments_helper_muut.tmpl"/>
-<%namespace name="facebook" file="comments_helper_facebook.tmpl"/>
-<%namespace name="isso" file="comments_helper_isso.tmpl"/>
-<%namespace name="commento" file="comments_helper_commento.tmpl"/>
-<%namespace name="utterances" file="comments_helper_utterances.tmpl"/>
+<%namespace name="comments_helper_impl" file="comments_helper_${context['comment_system']}.tmpl"/>
<%def name="comment_form(url, title, identifier)">
- %if comment_system == 'disqus':
- ${disqus.comment_form(url, title, identifier)}
- % elif comment_system == 'intensedebate':
- ${intensedebate.comment_form(url, title, identifier)}
- % elif comment_system == 'muut':
- ${muut.comment_form(url, title, identifier)}
- % elif comment_system == 'facebook':
- ${facebook.comment_form(url, title, identifier)}
- % elif comment_system == 'isso':
- ${isso.comment_form(url, title, identifier)}
- % elif comment_system == 'commento':
- ${commento.comment_form(url, title, identifier)}
- % elif comment_system == 'utterances':
- ${utterances.comment_form(url, title, identifier)}
- %endif
+ ${comments_helper_impl.comment_form(url, title, identifier)}
</%def>
<%def name="comment_link(link, identifier)">
- %if comment_system == 'disqus':
- ${disqus.comment_link(link, identifier)}
- % elif comment_system == 'intensedebate':
- ${intensedebate.comment_link(link, identifier)}
- % elif comment_system == 'muut':
- ${muut.comment_link(link, identifier)}
- % elif comment_system == 'facebook':
- ${facebook.comment_link(link, identifier)}
- % elif comment_system == 'isso':
- ${isso.comment_link(link, identifier)}
- % elif comment_system == 'commento':
- ${commento.comment_link(link, identifier)}
- % elif comment_system == 'utterances':
- ${utterances.comment_link(link, identifier)}
- %endif
+ ${comments_helper_impl.comment_link(link, identifier)}
</%def>
<%def name="comment_link_script()">
- %if comment_system == 'disqus':
- ${disqus.comment_link_script()}
- % elif comment_system == 'intensedebate':
- ${intensedebate.comment_link_script()}
- % elif comment_system == 'muut':
- ${muut.comment_link_script()}
- % elif comment_system == 'facebook':
- ${facebook.comment_link_script()}
- % elif comment_system == 'isso':
- ${isso.comment_link_script()}
- % elif comment_system == 'commento':
- ${commento.comment_link_script()}
- % elif comment_system == 'utterances':
- ${utterances.comment_link_script()}
- %endif
+ ${comments_helper_impl.comment_link_script()}
</%def>
diff --git a/nikola/data/themes/base/templates/comments_helper_dummy.tmpl b/nikola/data/themes/base/templates/comments_helper_dummy.tmpl
new file mode 100644
index 0000000..f31a2e0
--- /dev/null
+++ b/nikola/data/themes/base/templates/comments_helper_dummy.tmpl
@@ -0,0 +1,10 @@
+## -*- coding: utf-8 -*-
+
+<%def name="comment_form(url, title, identifier)">
+</%def>
+
+<%def name="comment_link(link, identifier)">
+</%def>
+
+<%def name="comment_link_script()">
+</%def>