From: Vladimír Vondruš Date: Wed, 11 Oct 2017 19:39:36 +0000 (+0200) Subject: theme: don't crash if majority of configuration is missing. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=bcacbb580aa309f19de09c50e6cc907844b4d8fc;p=blog.git theme: don't crash if majority of configuration is missing. --- diff --git a/pelican-theme/templates/base.html b/pelican-theme/templates/base.html index 265ed45e..b93ac910 100644 --- a/pelican-theme/templates/base.html +++ b/pelican-theme/templates/base.html @@ -7,7 +7,9 @@ {% endfor %} + {% if THEME_COLOR %} + {% endif %} {% if FEED_ALL_ATOM_URL %} @@ -73,6 +75,7 @@
+ {% if LINKS_FOOTER1 %}

{%- if LINKS_FOOTER1[0][1] %}{% endif %} {{- LINKS_FOOTER1[0][0] -}} @@ -83,8 +86,10 @@
  • {{ title }}
  • {% endif %}{% endfor %} + {% endif %}

    + {% if LINKS_FOOTER2 %}

    {%- if LINKS_FOOTER2[0][1] %}{% endif %} {{- LINKS_FOOTER2[0][0] -}} @@ -95,9 +100,11 @@
  • {{ title }}
  • {% endif %}{% endfor %} + {% endif %}

    + {% if LINKS_FOOTER3 %}

    {%- if LINKS_FOOTER3[0][1] %}{% endif %} {{- LINKS_FOOTER3[0][0] -}} @@ -108,6 +115,7 @@
  • {{ title }}
  • {% endif %}{% endfor %} + {% endif %}

    {% if LINKS_FOOTER4 %} @@ -133,7 +141,9 @@
    + {% if FINE_PRINT %} {{ FINE_PRINT|render_rst|indent(10) }} + {% endif %}