8000 Fix footer · matplotlib/matplotlib@3c4936a · GitHub
[go: up one dir, main page]

Skip to content

Commit 3c4936a

Browse files
committed
Fix footer
1 parent 1e2fded commit 3c4936a

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

doc/_templates/layout.html

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,23 @@
5252

5353
{%- block footer %}
5454
<footer>
55-
{{super()}}
55+
{%- if show_copyright %}
56+
{%- if hasdoc('copyright') %}
57+
{% trans path=pathto('copyright'), copyright=copyright|e %}&copy; <a
58+
href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}
59+
{%- else %}
60+
{% trans copyright=copyright|e %}&copy; Copyright {{ copyright }}.{%
61+
endtrans %}
62+
{%- endif %}
63+
{%- endif %}
64+
<br />
65+
{%- if last_updated %}
66+
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
67+
{%- endif %}
68+
{%- if show_sphinx %}
69+
{% trans sphinx_version=sphinx_version|e %}Created using
70+
<a href="http://sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
71+
{%- endif %}
5672
</footer>
5773
<script>
5874
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

0 commit comments

Comments
 (0)
0