From e390130d264458ad8932f66ce25275be52dd811a Mon Sep 17 00:00:00 2001
From: Che <43485962+c-git@users.noreply.github.com>
Date: Thu, 2 Jun 2022 17:59:34 -0400
Subject: [PATCH 1/6] Remove unnecessary white space
Adding a "-" before the "%}" removes white space after the statement.
Source: https://tera.netlify.app/docs#whitespace-control
---
templates/index.html | 113 +++++++++++++++++++++--------------------
templates/section.html | 11 ++--
2 files changed, 62 insertions(+), 62 deletions(-)
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 -%}