diff options
Diffstat (limited to 'nikola/data/themes/base-jinja')
3 files changed, 15 insertions, 53 deletions
diff --git a/nikola/data/themes/base-jinja/templates/base_helper.tmpl b/nikola/data/themes/base-jinja/templates/base_helper.tmpl index a05abb9..2d8c0c8 100644 --- a/nikola/data/themes/base-jinja/templates/base_helper.tmpl +++ b/nikola/data/themes/base-jinja/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-jinja/templates/comments_helper.tmpl b/nikola/data/themes/base-jinja/templates/comments_helper.tmpl index 2a7d8dc..4b50485 100644 --- a/nikola/data/themes/base-jinja/templates/comments_helper.tmpl +++ b/nikola/data/themes/base-jinja/templates/comments_helper.tmpl @@ -1,63 +1,15 @@ {# -*- coding: utf-8 -*- #} -{% import 'comments_helper_disqus.tmpl' as disqus with context %} -{% import 'comments_helper_intensedebate.tmpl' as intensedebate with context %} -{% import 'comments_helper_muut.tmpl' as muut with context %} -{% import 'comments_helper_facebook.tmpl' as facebook with context %} -{% import 'comments_helper_isso.tmpl' as isso with context %} -{% import 'comments_helper_commento.tmpl' as commento with context %} -{% import 'comments_helper_utterances.tmpl' as utterances with context %} +{% import 'comments_helper_%s.tmpl' % comment_system as comments_helper_impl with context %} {% macro 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) }} {% endmacro %} {% macro 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) }} {% endmacro %} {% macro 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() }} {% endmacro %} diff --git a/nikola/data/themes/base-jinja/templates/comments_helper_dummy.tmpl b/nikola/data/themes/base-jinja/templates/comments_helper_dummy.tmpl new file mode 100644 index 0000000..5ae1edb --- /dev/null +++ b/nikola/data/themes/base-jinja/templates/comments_helper_dummy.tmpl @@ -0,0 +1,10 @@ +{# -*- coding: utf-8 -*- #} + +{% macro comment_form(url, title, identifier) %} +{% endmacro %} + +{% macro comment_link(link, identifier) %} +{% endmacro %} + +{% macro comment_link_script() %} +{% endmacro %} |
