diff --git a/templates/index.html b/templates/index.html index 32c157f..d4c407d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,19 +3,19 @@ - {% if config.extra.favicon %} - {% set _favicon = config.extra.favicon %} - {% if (_favicon is starting_with("http")) == false %} - {% set _favicon = get_url(path=config.extra.favicon) %} - {% endif %} + {% if config.extra.favicon -%} + {% set _favicon = config.extra.favicon -%} + {% if (_favicon is starting_with("http")) == false -%} + {% set _favicon = get_url(path=config.extra.favicon) -%} + {% endif -%} - {% endif %} + {% endif -%} {% block title %}{{ config.title }}{% endblock title %} -{% if config.extra.release %} +{% if config.extra.release -%} -{% endif %} +{% endif -%}
- {% block nav %} + {% block nav -%} - {% endblock nav %} + {% endblock nav -%}
- {% if config.build_search_index %} + {% if config.build_search_index -%}
@@ -126,10 +127,10 @@ - {% endif %} + {% endif -%}
- {% block content %} + {% block content -%} {{ section.content | safe }} {% endblock content %}
@@ -141,7 +142,7 @@ -{% endif %} +{% endif -%} diff --git a/templates/section.html b/templates/section.html index abbf1a2..3e8a21e 100644 --- a/templates/section.html +++ b/templates/section.html @@ -2,21 +2,20 @@ {% block title %} {{ config.title }} | {{ section.title }} {% endblock title %} - {% block content %} - {% if section.word_count > 0 %} + {% if section.word_count > 0 -%} {{ section.content }} - {% else %} + {% else -%}

{{ section.title }}

Pages: - {% endif %} + {% endif -%} {% endblock content %}