We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9083bfc commit df87a40Copy full SHA for df87a40
sphinx_rtd_theme/layout.html
@@ -65,10 +65,10 @@
65
Workaround for: https://github.com/sphinx-doc/sphinx/issues/9730
66
Once a fix is released in Sphinx, put an upper bound on the Sphinx version for the workaround
67
-#}
68
- {%- if builder == 'dirhtml' and pageurl.endswith('.html') -%}
69
- {#- This expression trims away .html and adds a / -#}
+ {%- if builder == 'dirhtml' and pageurl.endswith('.html') %}
+ {#- This expression trims away .html and adds a / #}
70
<link rel="canonical" href="{{ (pageurl|e)[:-5] }}/" />
71
- {%- else -%}
+ {%- else %}
72
<link rel="canonical" href="{{ pageurl|e }}" />
73
{%- endif -%}
74
0 commit comments