Skip to content

Commit

Permalink
Merge pull request #183 from hugovk/fix-last-updated-on-none
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Mar 25, 2024
2 parents d674528 + 5c6c0b4 commit 439dd95
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions python_docs_theme/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,21 +136,35 @@ <h3>{{ _('Navigation') }}</h3>

{% block footer %}
<div class="footer">
&copy; {% if theme_copyright_url or hasdoc('copyright') %}<a href="{% if theme_copyright_url %}{{ theme_copyright_url }}{% else %}{{ pathto('copyright') }}{% endif %}">{% endif %}{% trans %}Copyright{% endtrans %}{% if theme_copyright_url or hasdoc('copyright') %}</a>{% endif %} {{ copyright|e }}.
&copy; {% if theme_copyright_url or hasdoc('copyright') %}
<a href="{% if theme_copyright_url %}{{ theme_copyright_url }}{% else %}{{ pathto('copyright') }}{% endif %}">
{% endif %}
{% trans %}Copyright{% endtrans %}
{% if theme_copyright_url or hasdoc('copyright') %}
</a>
{% endif %} {{ copyright|e }}.
<br />
{% trans %}This page is licensed under the Python Software Foundation License Version 2.{% endtrans %}
<br />
{% trans %}Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.{% endtrans %}
<br />
{% if theme_license_url %}{% trans license_file=theme_license_url %}See <a href="{{ license_file }}">History and License</a> for more information.{% endtrans %}<br />{% endif %}
{% if theme_hosted_on %}{% trans hosted_on=theme_hosted_on %}Hosted on {{ hosted_on }}.{% endtrans %}<br />{% endif %}
{% if theme_license_url %}
{% trans license_file=theme_license_url %}See <a href="{{ license_file }}">History and License</a> for more information.{% endtrans %}<br />
{% endif %}
{% if theme_hosted_on %}
{% trans hosted_on=theme_hosted_on %}Hosted on {{ hosted_on }}.{% endtrans %}<br />
{% endif %}
<br />

{% include "footerdonate.html" %}
<br />

{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
{% if theme_issues_url %}{% trans %}<a href="{{ theme_issues_url }}">Found a bug</a>?{% endtrans %}{% endif %}
{%- if last_updated %}
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
{%- endif %}
{% if theme_issues_url %}
{% trans %}<a href="{{ theme_issues_url }}">Found a bug</a>?{% endtrans %}
{% endif %}
<br />

{% trans sphinx_version=sphinx_version|e %}Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
Expand Down

0 comments on commit 439dd95

Please sign in to comment.