Skip to content

Commit ecd4e44

Browse files
committed
docs: fix canonical link for www.roundup-tracker.org index page
the index page canonical link was: https://www...org/index.html change the template so the canonical is set to https://www...org/ as that is how it's listed by crawlers.
1 parent 3115764 commit ecd4e44

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

website/www/_templates/layout.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,13 @@
4848
content="Page {{ pagename }} in documentation on the Roundup issue tracker, version {{ release|e }}.">
4949
{%- endif %}
5050
{%- if pageurl %}
51+
{%- if pageurl.endswith("org/index.html") %}
52+
<!-- strip the index.html to make
53+
https://www.roundup-tracker.org/ canonical -->
54+
<link rel="canonical" href="{{ pageurl[:-10] }}" />
55+
{%- else %}
5156
<link rel="canonical" href="{{ pageurl|e }}" />
57+
{%- endif %}
5258
{%- endif %}
5359
{%- if use_opensearch %}
5460
<link rel="search" type="application/opensearchdescription+xml"

0 commit comments

Comments
 (0)