From bcacbb580aa309f19de09c50e6cc907844b4d8fc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 11 Oct 2017 21:39:36 +0200 Subject: [PATCH] theme: don't crash if majority of configuration is missing. --- pelican-theme/templates/base.html | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 %}
    -- 2.30.2