Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e493aa0

Browse files
Added a theme variable for the copyright link
Co-authored-by: CAM Gerlach <[email protected]>
1 parent 0d1f143 commit e493aa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python_docs_theme/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
{% block footer %}
4747
<div class="footer">
48-
&copy; <a href="https://github.com/python/devguide/blob/master/LICENSE">{% trans %}Copyright{% endtrans %}</a> {{ copyright|e }}.
48+
&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 }}.
4949
<br />
5050
{% trans %}This page is licensed under the Python Software Foundation License Version 2.{% endtrans %}
5151
<br />

0 commit comments

Comments
 (0)