Skip to content

Commit c1cf308

Browse files
author
Peter Krautzberger
committed
add canonical link to latest
1 parent db97dc3 commit c1cf308

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

_themes/sphinx-bootstrap/layout.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,15 @@
8282
<title>{{ title|striptags|e }}{{ titlesuffix }}</title>
8383
{%- endblock %}
8484
<meta name="viewport" content="width=device-width, initial-scale=1.0">
85+
<link rel="canonical" href="http://docs.mathjax.org/en/latest
86+
{%- for word in pagename.split('/') -%}
87+
{%- if word != 'index' -%}
88+
{%- if word != '' -%}
89+
/{{ word }}
90+
{%- endif -%}
91+
{%- endif -%}
92+
{%- endfor -%}
93+
.html">
8594
<link href='http://fonts.googleapis.com/css?family=Crete+Round' rel='stylesheet' type='text/css'>
8695
<link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css"/>
8796
<link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css"/>

0 commit comments

Comments
 (0)