From 257dbc8f8c1d9eb466e98c80365bb584a7965ecf Mon Sep 17 00:00:00 2001 From: Jonathan <4561747+gilgongo@users.noreply.github.com> Date: Wed, 4 Sep 2024 07:07:01 +0100 Subject: [PATCH] Identify canonical and alternate URLs (#1026) Co-authored-by: ann0see <20726856+ann0see@users.noreply.github.com> --- _includes/headtags.html | 13 +++++++------ wiki/en/misc/1-index.md | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/_includes/headtags.html b/_includes/headtags.html index 367389e44..584414bb5 100644 --- a/_includes/headtags.html +++ b/_includes/headtags.html @@ -1,14 +1,15 @@ -{% assign sorted_languages = site.languages | sort %} -{% for lng in sorted_languages %} - {% if lng == site.default_lang %} - - {% else %} +{% comment %} +English URLs don't have a lang subdirectory since it's the default language. +See https://github.com/untra/polyglot +{% endcomment %} + +{% for lng in site.languages | sort %} + {% if lng != "en" %} {% endif %} {% endfor %} - diff --git a/wiki/en/misc/1-index.md b/wiki/en/misc/1-index.md index a70b23231..a7e1f829f 100644 --- a/wiki/en/misc/1-index.md +++ b/wiki/en/misc/1-index.md @@ -28,7 +28,7 @@ Jamulus lets you play, rehearse, or jam with your friends, your band, or anyone