From 45516a7589362021c050e644fd03fd9b73b9dbd5 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sun, 30 Apr 2023 00:35:50 +0100 Subject: [PATCH 1/6] Add canonical tag to homepage --- _layouts/base.html | 4 ++-- index.html | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/_layouts/base.html b/_layouts/base.html index 2458bad..59a6529 100644 --- a/_layouts/base.html +++ b/_layouts/base.html @@ -21,7 +21,7 @@ layout: compress - + {% assign oldSegment = "/" | append: language | append: "/" %} {% for other_lang in site.data.languages %} @@ -29,7 +29,7 @@ layout: compress {% assign newSegment = "/" | append: other_lang.code | append: "/" %} + href="{{ page.url | replace: oldSegment, newSegment | relative_url }}"> {% endunless %} {% endfor %} diff --git a/index.html b/index.html index 7dbdf8b..b5260f2 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,9 @@ layout: none Minetest Modding Book + +