Skip to content
Permalink
Browse files
Merge branch 'master' into drop-useless-settings
  • Loading branch information
Kwpolska committed May 2, 2018
2 parents 57b61c5 + a63a9fa commit ec7159cf77a6e3048301734c5ddccc149a075b9e
Showing with 784 additions and 655 deletions.
  1. +14 −0 CHANGES.txt
  2. +21 −16 docs/manual.rst
  3. +19 −6 nikola/conf.py.in
  4. +4 −4 nikola/data/themes/base-jinja/templates/math_helper.tmpl
  5. +4 −4 nikola/data/themes/base/templates/math_helper.tmpl
  6. +21 −35 nikola/data/themes/bootblog4-jinja/templates/base_helper.tmpl
  7. +21 −35 nikola/data/themes/bootblog4/templates/base_helper.tmpl
  8. +21 −35 nikola/data/themes/bootstrap4-jinja/templates/base_helper.tmpl
  9. +21 −35 nikola/data/themes/bootstrap4/templates/base_helper.tmpl
  10. +72 −62 nikola/nikola.py
  11. +9 −5 nikola/plugin_categories.py
  12. +7 −3 nikola/plugins/command/import_wordpress.py
  13. +2 −0 nikola/plugins/misc/taxonomies_classifier.py
  14. +2 −13 nikola/plugins/task/archive.py
  15. +0 −1 nikola/plugins/task/authors.py
  16. +1 −1 nikola/plugins/task/categories.py
  17. +8 −1 nikola/plugins/task/indexes.py
  18. +1 −1 nikola/plugins/task/page_index.py
  19. +3 −2 nikola/plugins/task/sections.py
  20. +1 −1 nikola/plugins/task/tags.py
  21. +20 −30 nikola/plugins/task/taxonomies.py
  22. +70 −13 nikola/post.py
  23. +5 −5 npm_assets/node_modules/bootstrap/README.md
  24. +1 −1 npm_assets/node_modules/bootstrap/dist/css/bootstrap-grid.css
  25. +1 −1 npm_assets/node_modules/bootstrap/dist/css/bootstrap-grid.css.map
  26. +1 −1 npm_assets/node_modules/bootstrap/dist/css/bootstrap-grid.min.css
  27. +1 −1 npm_assets/node_modules/bootstrap/dist/css/bootstrap-grid.min.css.map
  28. +3 −3 npm_assets/node_modules/bootstrap/dist/css/bootstrap-reboot.css
  29. +1 −1 npm_assets/node_modules/bootstrap/dist/css/bootstrap-reboot.css.map
  30. +2 −2 npm_assets/node_modules/bootstrap/dist/css/bootstrap-reboot.min.css
  31. +1 −1 npm_assets/node_modules/bootstrap/dist/css/bootstrap-reboot.min.css.map
  32. +54 −23 npm_assets/node_modules/bootstrap/dist/css/bootstrap.css
  33. +1 −1 npm_assets/node_modules/bootstrap/dist/css/bootstrap.css.map
  34. +2 −2 npm_assets/node_modules/bootstrap/dist/css/bootstrap.min.css
  35. +1 −1 npm_assets/node_modules/bootstrap/dist/css/bootstrap.min.css.map
  36. +71 −60 npm_assets/node_modules/bootstrap/dist/js/bootstrap.bundle.js
  37. +1 −1 npm_assets/node_modules/bootstrap/dist/js/bootstrap.bundle.js.map
  38. +2 −2 npm_assets/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js
  39. +1 −1 npm_assets/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js.map
  40. +31 −29 npm_assets/node_modules/bootstrap/dist/js/bootstrap.js
  41. +1 −1 npm_assets/node_modules/bootstrap/dist/js/bootstrap.js.map
  42. +2 −2 npm_assets/node_modules/bootstrap/dist/js/bootstrap.min.js
  43. +1 −1 npm_assets/node_modules/bootstrap/dist/js/bootstrap.min.js.map
  44. +6 −4 npm_assets/node_modules/bootstrap/js/dist/alert.js
  45. +1 −1 npm_assets/node_modules/bootstrap/js/dist/alert.js.map
  46. +2 −2 npm_assets/node_modules/bootstrap/js/dist/button.js
  47. +1 −1 npm_assets/node_modules/bootstrap/js/dist/button.js.map
  48. +2 −2 npm_assets/node_modules/bootstrap/js/dist/carousel.js
  49. +1 −1 npm_assets/node_modules/bootstrap/js/dist/carousel.js.map
  50. +3 −3 npm_assets/node_modules/bootstrap/js/dist/collapse.js
  51. +1 −1 npm_assets/node_modules/bootstrap/js/dist/collapse.js.map
  52. +2 −2 npm_assets/node_modules/bootstrap/js/dist/dropdown.js
  53. +1 −1 npm_assets/node_modules/bootstrap/js/dist/dropdown.js.map
  54. +1 −1 npm_assets/node_modules/bootstrap/js/dist/index.js
  55. +1 −1 npm_assets/node_modules/bootstrap/js/dist/index.js.map
  56. +3 −3 npm_assets/node_modules/bootstrap/js/dist/modal.js
  57. +1 −1 npm_assets/node_modules/bootstrap/js/dist/modal.js.map
  58. +2 −2 npm_assets/node_modules/bootstrap/js/dist/popover.js
  59. +1 −1 npm_assets/node_modules/bootstrap/js/dist/popover.js.map
  60. +3 −3 npm_assets/node_modules/bootstrap/js/dist/scrollspy.js
  61. +1 −1 npm_assets/node_modules/bootstrap/js/dist/scrollspy.js.map
  62. +2 −2 npm_assets/node_modules/bootstrap/js/dist/tab.js
  63. +1 −1 npm_assets/node_modules/bootstrap/js/dist/tab.js.map
  64. +3 −3 npm_assets/node_modules/bootstrap/js/dist/tooltip.js
  65. +1 −1 npm_assets/node_modules/bootstrap/js/dist/tooltip.js.map
  66. +1 −1 npm_assets/node_modules/bootstrap/js/dist/util.js
  67. +1 −1 npm_assets/node_modules/bootstrap/js/dist/util.js.map
  68. +6 −4 npm_assets/node_modules/bootstrap/js/src/alert.js
  69. +2 −2 npm_assets/node_modules/bootstrap/js/src/button.js
  70. +2 −2 npm_assets/node_modules/bootstrap/js/src/carousel.js
  71. +3 −3 npm_assets/node_modules/bootstrap/js/src/collapse.js
  72. +2 −2 npm_assets/node_modules/bootstrap/js/src/dropdown.js
  73. +1 −1 npm_assets/node_modules/bootstrap/js/src/index.js
  74. +4 −4 npm_assets/node_modules/bootstrap/js/src/modal.js
  75. +2 −2 npm_assets/node_modules/bootstrap/js/src/popover.js
  76. +3 −3 npm_assets/node_modules/bootstrap/js/src/scrollspy.js
  77. +2 −2 npm_assets/node_modules/bootstrap/js/src/tab.js
  78. +3 −3 npm_assets/node_modules/bootstrap/js/src/tooltip.js
  79. +1 −1 npm_assets/node_modules/bootstrap/js/src/util.js
  80. +32 −32 npm_assets/node_modules/bootstrap/package.json
  81. +1 −0 npm_assets/node_modules/bootstrap/scss/_carousel.scss
  82. +0 −8 npm_assets/node_modules/bootstrap/scss/_code.scss
  83. +6 −5 npm_assets/node_modules/bootstrap/scss/_custom-forms.scss
  84. +1 −2 npm_assets/node_modules/bootstrap/scss/_input-group.scss
  85. +17 −0 npm_assets/node_modules/bootstrap/scss/_print.scss
  86. +2 −4 npm_assets/node_modules/bootstrap/scss/_reboot.scss
  87. +2 −1 npm_assets/node_modules/bootstrap/scss/_variables.scss
  88. +1 −1 npm_assets/node_modules/bootstrap/scss/bootstrap-grid.scss
  89. +1 −1 npm_assets/node_modules/bootstrap/scss/bootstrap-reboot.scss
  90. +1 −1 npm_assets/node_modules/bootstrap/scss/bootstrap.scss
  91. +10 −0 npm_assets/node_modules/bootstrap/scss/mixins/_forms.scss
  92. +1 −1 npm_assets/node_modules/bootstrap/scss/mixins/_hover.scss
  93. +4 −2 npm_assets/node_modules/bootstrap/scss/mixins/_text-hide.scss
  94. +1 −1 npm_assets/node_modules/bootstrap/scss/utilities/_text.scss
  95. +8 −0 npm_assets/node_modules/moment/CHANGELOG.md
  96. +13 −13 npm_assets/node_modules/moment/locale/ru.js
  97. +13 −13 npm_assets/node_modules/moment/min/locales.js
  98. +1 −1 npm_assets/node_modules/moment/min/locales.min.js
  99. +15 −15 npm_assets/node_modules/moment/min/moment-with-locales.js
  100. +1 −1 npm_assets/node_modules/moment/min/moment-with-locales.min.js
  101. +1 −1 npm_assets/node_modules/moment/min/moment.min.js
  102. +13 −0 npm_assets/node_modules/moment/moment.d.ts
  103. +2 −2 npm_assets/node_modules/moment/moment.js
  104. +12 −12 npm_assets/node_modules/moment/package.json
  105. +1 −1 npm_assets/node_modules/moment/src/lib/units/day-of-month.js
  106. +13 −13 npm_assets/node_modules/moment/src/locale/ru.js
  107. +1 −1 npm_assets/node_modules/moment/src/locale/ug-cn.js
  108. +2 −2 npm_assets/node_modules/moment/src/moment.js
  109. +6 −6 npm_assets/package-lock.json
  110. +2 −2 npm_assets/package.json
  111. +1 −1 scripts/jinjify.py
@@ -7,15 +7,26 @@ Important compatibility changes
* Rename ``crumbs.tmpl`` to ``ui_helper.tmpl`` and the breadcrumbs
``bar`` function to ``breadcrumbs`` (your templates may need
changing as well)
* Rename ``post.is_mathjax`` to ``post.has_math``. Themes using
``post.is_mathjax`` must be updated; it is recommended that they are
changed to use ``math_helper.tmpl``.
* Reading reST docinfo metadata, including first heading as title,
requires ``USE_REST_DOCINFO_METADATA`` now (Issue #2987)
* RSS feeds might have changed their places due to ``RSS_PATH``
behavior changes (you may need to change ``RSS_PATH``,
``RSS_FILENAME_BASE``)
* Atom feeds for archives and Atom pagination are no longer supported
(Issue #3016)

Features
--------

* Add ``DISABLE_MAIN_ATOM_FEED`` setting (Issue #3016, Issue #3039)
* Add ``ATOM_FILENAME_BASE`` setting (defaults to ``index`` for
existing sites, but ``feed`` for new sites) (Issue #3016)
* Tags ``draft``, ``private`` and ``mathjax`` are no longer treated
special if ``USE_TAG_METADATA`` is set to ``False`` (default for
new sites) (Issue #2761)
* Produce a better error message when a template referenced in another
template is missing (Issue #3055)
* Support captioned images and image ordering in galleries (Issue #3017)
@@ -73,6 +84,8 @@ Features
Bugfixes
--------

* Always follow ``FEED_LENGTH`` for Atom feeds
* Apply filters to all Atom feeds
* Read file metadata if compiler metadata exists and prefer it over
compiler metadata (Issue #3008)
* Rename ``DISABLE_INDEXES_PLUGIN_INDEX_AND_ATOM_FEED`` to ``DISABLE_INDEXES``
@@ -148,6 +161,7 @@ Removed features
* Removed taxonomy option ``also_create_classifications_from_other_languages``
(Issue #2785)
* Removed old 7-line metadata format (Issue #2839)
* Atom feeds are now limited to one page (Issue #3016)

New in v7.8.8
=============
@@ -3,7 +3,8 @@
.. date: 2012-03-30 23:00:00 UTC-03:00
.. link:
.. description:
.. tags: mathjax
.. tags:
.. has_math: true
.. author: The Nikola Team
The Nikola Handbook
@@ -299,8 +300,14 @@ date
Adding a timezone is recommended. (required for posts)

tags
Comma-separated tags of the post. Some tags have special meaning, including
``draft``, ``private``, ``mathjax``
Comma-separated tags of the post.

status
Can be set to ``published`` (default), ``featured``, ``draft``, or ``private``.

has_math
If set to ``true`` or ``yes``, MathJax resp. KaTeX support is enabled
for this post.

category
Like tags, except each post can have only one, and they usually have
@@ -809,11 +816,11 @@ Or you can completely customize the link using the ``READ_MORE_LINK`` option.
Drafts
~~~~~~

If you add a "draft" tag to a post, then it will not be shown in indexes and feeds.
It *will* be compiled, and if you deploy it it *will* be made available, so use
with care. If you wish your drafts to be not available in your deployed site, you
can set ``DEPLOY_DRAFTS = False`` in your configuration. This will not work if
lazily include ``nikola build`` in your ``DEPLOY_COMMANDS``.
If you set the ``status`` metadata field of a post to ``draft``, it will not be shown
in indexes and feeds. It *will* be compiled, and if you deploy it it *will* be made
available, so use with care. If you wish your drafts to be not available in your
deployed site, you can set ``DEPLOY_DRAFTS = False`` in your configuration. This will
not work if lazily include ``nikola build`` in your ``DEPLOY_COMMANDS``.

Also if a post has a date in the future, it will not be shown in indexes until
you rebuild after that date. This behavior can be disabled by setting
@@ -826,9 +833,9 @@ Generally, you want FUTURE_IS_NOW and DEPLOY_FUTURE to be the same value.
Private Posts
~~~~~~~~~~~~~

If you add a "private" tag to a post, then it will not be shown in indexes and feeds.
It *will* be compiled, and if you deploy it it *will* be made available, so it will
not generate 404s for people who had linked to it.
If you set the ``status`` metadata field of a post to ``private``, it will not be shown
in indexes and feeds. It *will* be compiled, and if you deploy it it *will* be made
available, so it will not generate 404s for people who had linked to it.

Queuing Posts
~~~~~~~~~~~~~
@@ -967,8 +974,6 @@ Please note that tags are case-sensitive and that you cannot have two tags that
ERROR: Nikola: Tag Nikola is used in: posts/second-post.rst
ERROR: Nikola: Tag nikola is used in: posts/1.rst

Nikola uses some tags to mark a post as “special” — those are ``draft``, ``private``, ``mathjax`` (for math support).

You can also generate a tag cloud with the `tx3_tag_cloud <https://plugins.getnikola.com/#tx3_tag_cloud>`_ plugin.

Categories
@@ -2290,9 +2295,9 @@ Nikola uses MathJax by default. If you want to use KaTeX (faster and prettier,
but may not support every feature yet), set ``USE_KATEX = True`` in
``conf.py``.

To use mathematics in a post, you **must** add the ``mathjax`` tag, no matter
which renderer you are using. (Exception: posts that are Jupyter Notebooks are
automatically marked as math)
To use mathematics in a post, you **must** set the ``has_math`` metadata field
to ``true``. (Exception: posts that are Jupyter Notebooks are automatically
marked as math)

.. Note to editors: the paragraph below uses U+200B, zero-width space. Don’t break it.
@@ -518,10 +518,17 @@ FRONT_INDEX_HEADER = {
# RSS_PATH = ""

# Final location for the blog main Atom feed is:
# output / TRANSLATION[lang] / ATOM_PATH / index.atom
# output / TRANSLATION[lang] / ATOM_PATH / ATOM_FILENAME_BASE ATOM_EXTENSION
# (translatable)
# ATOM_PATH = ""

# Atom filename base (without extension); used for indexes.
# (translatable)
ATOM_FILENAME_BASE = "feed"

# Extension for Atom feed files
# ATOM_EXTENSION = ".atom"

# Slug the Tag URL. Easier for users to type, special characters are
# often removed or replaced as well.
# SLUG_TAG_PATH = True
@@ -1053,9 +1060,6 @@ MARKDOWN_EXTENSIONS = ['markdown.extensions.fenced_code', 'markdown.extensions.c
# between each other. Old Atom feeds with no changes are marked as archived.
# GENERATE_ATOM = False

# Extension for Atom feed files
# ATOM_EXTENSION = ".atom"

# Only include teasers in Atom and RSS feeds. Disabling include the full
# content. Defaults to True.
# FEED_TEASERS = True
@@ -1213,10 +1217,10 @@ MARKDOWN_EXTENSIONS = ['markdown.extensions.fenced_code', 'markdown.extensions.c
# Plugins you don't want to use. Be careful :-)
# DISABLED_PLUGINS = ["render_galleries"]

# Special settings to disable only parts of the indexes plugin (to allow RSS
# but no blog indexes, or to allow blog indexes and Atom but no site-wide RSS).
# Special settings to disable only parts of the indexes plugin.
# Use with care.
# DISABLE_INDEXES = False
# DISABLE_MAIN_ATOM_FEED = False
# DISABLE_MAIN_RSS_FEED = False

# Add the absolute paths to directories containing plugins to use them.
@@ -1271,3 +1275,12 @@ GLOBAL_CONTEXT = {}
# GLOBAL_CONTEXT as parameter when the template is about to be
# rendered
GLOBAL_CONTEXT_FILLER = []

# If set to True, the tags 'draft', 'mathjax' and 'private' have special
# meaning. If set to False, these tags are handled like regular tags.
USE_TAG_METADATA = False

# If set to True, a warning is issued if one of the 'draft', 'mathjax'
# and 'private' tags are found in a post. Useful for checking that
# migration was successful.
WARN_ABOUT_TAG_METADATA = False
@@ -45,25 +45,25 @@
{% endmacro %}

{% macro math_scripts_ifpost(post) %}
{% if post.is_mathjax %}
{% if post.has_math %}
{{ math_scripts() }}
{% endif %}
{% endmacro %}

{% macro math_scripts_ifposts(posts) %}
{% if posts|selectattr("is_mathjax")|list %}
{% if posts|selectattr("has_math")|list %}
{{ math_scripts() }}
{% endif %}
{% endmacro %}

{% macro math_styles_ifpost(post) %}
{% if post.is_mathjax %}
{% if post.has_math %}
{{ math_styles() }}
{% endif %}
{% endmacro %}

{% macro math_styles_ifposts(posts) %}
{% if posts|selectattr("is_mathjax")|list %}
{% if posts|selectattr("has_math")|list %}
{{ math_styles() }}
{% endif %}
{% endmacro %}
@@ -45,25 +45,25 @@
</%def>

<%def name="math_scripts_ifpost(post)">
%if post.is_mathjax:
%if post.has_math:
${math_scripts()}
%endif
</%def>

<%def name="math_scripts_ifposts(posts)">
%if any(post.is_mathjax for post in posts):
%if any(post.has_math for post in posts):
${math_scripts()}
%endif
</%def>

<%def name="math_styles_ifpost(post)">
%if post.is_mathjax:
%if post.has_math:
${math_styles()}
%endif
</%def>

<%def name="math_styles_ifposts(posts)">
%if any(post.is_mathjax for post in posts):
%if any(post.has_math for post in posts):
${math_styles()}
%endif
</%def>
@@ -63,25 +63,19 @@ lang="{{ lang }}">
{% endmacro %}

{% macro late_load_js() %}
{% if use_bundles %}
{% if use_cdn %}
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha256-98vAGjEDGN79TjHkYWVD4s87rvWkdWLHPs5MC3FvFX4=" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js" integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/baguettebox.js/1.10.0/baguetteBox.min.js" integrity="sha256-lQrWH6UPtNlJURtEYCgKDqLyBscHa/uF/nFle9bx3tI=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.0/moment-with-locales.min.js" integrity="sha256-RD4uaXz3KfJR/tER2O0FDpPftthhg8kJih3adpCUkUU=" crossorigin="anonymous"></script>
<script src="/assets/js/all.js"></script>
{% else %}
<script src="/assets/js/all-nocdn.js"></script>
{% endif %}
{% if use_cdn %}
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha256-98vAGjEDGN79TjHkYWVD4s87rvWkdWLHPs5MC3FvFX4=" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/baguettebox.js/1.10.0/baguetteBox.min.js" integrity="sha256-lQrWH6UPtNlJURtEYCgKDqLyBscHa/uF/nFle9bx3tI=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.1/moment-with-locales.min.js" integrity="sha256-ZykW30UBCXWkPGsVyVPdJlUrce9/PawgYCEzinA4pnU=" crossorigin="anonymous"></script>
{% endif %}
{% if use_bundles and use_cdn %}
<script src="/assets/js/all.js"></script>
{% elif use_bundles %}
<script src="/assets/js/all-nocdn.js"></script>
{% else %}
{% if use_cdn %}
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha256-98vAGjEDGN79TjHkYWVD4s87rvWkdWLHPs5MC3FvFX4=" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js" integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/baguettebox.js/1.10.0/baguetteBox.min.js" integrity="sha256-lQrWH6UPtNlJURtEYCgKDqLyBscHa/uF/nFle9bx3tI=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.0/moment-with-locales.min.js" integrity="sha256-RD4uaXz3KfJR/tER2O0FDpPftthhg8kJih3adpCUkUU=" crossorigin="anonymous"></script>
{% else %}
{% if not use_cdn %}
<script src="/assets/js/jquery.min.js"></script>
<script src="/assets/js/popper.min.js"></script>
<script src="/assets/js/bootstrap.min.js"></script>
@@ -95,19 +89,16 @@ lang="{{ lang }}">


{% macro html_stylesheets() %}
{% if use_bundles %}
{% if use_cdn %}
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/baguettebox.js/1.10.0/baguetteBox.min.css" integrity="sha256-FqCzNnnyXl5HxHMdb+RQ/RV/X7fqfPcQYy+G2gFL3Xk=" crossorigin="anonymous" />
<link href="/assets/css/all.css" rel="stylesheet" type="text/css">
{% else %}
<link href="/assets/css/all-nocdn.css" rel="stylesheet" type="text/css">
{% endif %}
{% if use_cdn %}
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/baguettebox.js/1.10.0/baguetteBox.min.css" integrity="sha256-FqCzNnnyXl5HxHMdb+RQ/RV/X7fqfPcQYy+G2gFL3Xk=" crossorigin="anonymous" />
{% endif %}
{% if use_bundles and use_cdn %}
<link href="/assets/css/all.css" rel="stylesheet" type="text/css">
{% elif use_bundles %}
<link href="/assets/css/all-nocdn.css" rel="stylesheet" type="text/css">
{% else %}
{% if use_cdn %}
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/baguettebox.js/1.10.0/baguetteBox.min.css" integrity="sha256-FqCzNnnyXl5HxHMdb+RQ/RV/X7fqfPcQYy+G2gFL3Xk=" crossorigin="anonymous" />
{% else %}
{% if not use_cdn %}
<link href="/assets/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="/assets/css/baguetteBox.min.css" rel="stylesheet" type="text/css">
{% endif %}
@@ -124,11 +115,6 @@ lang="{{ lang }}">
<link href="/assets/css/nikola_ipython.css" rel="stylesheet" type="text/css">
{% endif %}
<link href="https://fonts.googleapis.com/css?family=Playfair+Display:700,900" rel="stylesheet">
{% if annotations and post and not post.meta('noannotations') %}
{{ notes.css() }}
{% elif not annotations and post and post.meta('annotations') %}
{{ notes.css() }}
{% endif %}
{% endmacro %}

{% macro html_navigation_links() %}

0 comments on commit ec7159c

Please sign in to comment.