diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html index 08e1520de..843122fd2 100644 --- a/docs/_templates/layout.html +++ b/docs/_templates/layout.html @@ -1,6 +1,6 @@ {%- extends "!layout.html" %} -{# +{#- This template exists as a way to implement a version menu without changing what the theme normally renders the menu on local builds and on builds on Read the @@ -8,8 +8,8 @@ #} -{% block footer %} - {% if not READTHEDOCS %} +{%- block footer %} + {%- if not READTHEDOCS %}
{%- if show_copyright %}
{%- if hasdoc('copyright') %}
- {% trans path=pathto('copyright'), copyright=copyright|e %}© Copyright {{ copyright }}.{% endtrans %}
+ {%- trans path=pathto('copyright'), copyright=copyright|e %}© Copyright {{ copyright }}.{% endtrans %}
{%- else %}
- {% trans copyright=copyright|e %}© Copyright {{ copyright }}.{% endtrans %}
+ {%- trans copyright=copyright|e %}© Copyright {{ copyright }}.{% endtrans %}
{%- endif %}
{%- endif %}
{%- if build_id and build_url %}
- {# Translators: Build is a noun, not a verb #}
- {% trans %}Build{% endtrans %}
+ {#- Translators: Build is a noun, not a verb -#}
+ {%- trans %}Build{% endtrans -%}
{{ build_id }}.
{%- elif commit %}
- {# Translators: the phrase "revision" comes from Git, referring to a commit #}
- {% trans %}Revision{% endtrans %} {{ commit }}
.
+ {#- Translators: the phrase "revision" comes from Git, referring to a commit #}
+ {%- trans %}Revision{% endtrans %} {{ commit }}
.
{%- endif %}
{%- if last_updated %}
- {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
+ {%- trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
- {%- endif %}
+ {%- endif -%}