Skip to content

Commit 6ed468a

Browse files
Add the copyright_url variable in the theme (#67)
* Add the copyright_url variable in the theme Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
1 parent f5d2364 commit 6ed468a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

python_docs_theme/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ <h3>{{ _('Navigation') }}</h3>
120120

121121
{% block footer %}
122122
<div class="footer">
123-
&copy; <a href="{{ pathto('copyright') }}">{% trans %}Copyright{% endtrans %}</a> {{ copyright|e }}.
123+
&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 }}.
124124
<br />
125125
{% trans %}This page is licensed under the Python Software Foundation License Version 2.{% endtrans %}
126126
<br />

python_docs_theme/theme.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ root_name = Python
2929
root_url = https://www.python.org/
3030
root_icon = py.svg
3131
root_include_title = True
32+
copyright_url =

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy