Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6ed468a

Browse files
Add the copyright_url variable in the theme (#67)
* Add the copyright_url variable in the themeCo-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
1 parentf5d2364 commit6ed468a

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
<divclass="footer">
123-
&copy;<ahref="{{pathto('copyright') }}">{% trans %}Copyright{% endtrans %}</a> {{ copyright|e }}.
123+
&copy;{% if theme_copyright_url or hasdoc('copyright') %}<ahref="{% 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)

[8]ページ先頭

©2009-2025 Movatter.jp