Fix extraneous whitespace at the macro level
This commit is contained in:
parent
7bddebeff1
commit
caef42ff2f
1 changed files with 5 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
{% if 'jinja2.ext.i18n' not in JINJA_ENVIRONMENT.extensions and 'jinja2.ext.i18n' not in JINJA_EXTENSIONS %}
|
{% if 'jinja2.ext.i18n' not in JINJA_ENVIRONMENT.extensions and 'jinja2.ext.i18n' not in JINJA_EXTENSIONS %}
|
||||||
{% macro _(msg) %}
|
{%- macro _(msg) -%}
|
||||||
{{ msg % kwargs }}
|
{{ msg % kwargs }}
|
||||||
{% endmacro %}
|
{%- endmacro -%}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
@ -183,18 +183,18 @@
|
||||||
|
|
||||||
{% if MAIN_MENU %}
|
{% if MAIN_MENU %}
|
||||||
<nav>
|
<nav>
|
||||||
<a href="{{ SITEURL }}">{{ _('Home').strip() }}</a>
|
<a href="{{ SITEURL }}">{{ _('Home') }}</a>
|
||||||
|
|
||||||
{% for title, link in MENUITEMS %}
|
{% for title, link in MENUITEMS %}
|
||||||
<a href="{{ link }}">{{ title }}</a>
|
<a href="{{ link }}">{{ title }}</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% if FEED_ALL_ATOM %}
|
{% if FEED_ALL_ATOM %}
|
||||||
<a href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}">{{ _('Atom').strip() }}</a>
|
<a href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}">{{ _('Atom') }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if FEED_ALL_RSS %}
|
{% if FEED_ALL_RSS %}
|
||||||
<a href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}">{{ _('RSS').strip() }}</a>
|
<a href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}">{{ _('RSS') }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</nav>
|
</nav>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue