6 Commits

Author SHA1 Message Date
Max Hilbrunner
ad2e2c9ec0 Prepend "(DEV)" to HTML titles if build locally/not on RTD
(cherry picked from commit 0b6d26e33d)
2020-05-04 09:35:02 +02:00
Max Hilbrunner
2668f8b5a9 Appease our great search engine overlords
This hopefully fixes all translated pages showing up in search engine results, and makes the STABLE version of each page canonical.
In turn, this allows us to re-enable indexing of the version-specific pages (see robots.txt changes), as search engines should prefer the canonical (stable) version, and only show the other versions if no canonical (stable) version exists (i.e. because that feature is only in latest, or was removed in stable).

It adds proper canonical links for all generated pages, and fixes the existing links between the various translations of a page by both ensuring the pages links to itself with the proper language tag, and by properly linking to the full path of other translated versions.

(cherry picked from commits:
- fd5f6f4909,
- 263ff56251,
- e21df0671f,
- 24781e377b,
- 66d185d5d2,
- 3c79f3e321)

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2020-05-04 09:35:02 +02:00
StraToN
54c3b3e98a Adds a breadcrumb template to manage hiding 'Edit on Github' link.
To work, requires adding a meta the very beginning of files that have to hide this link:
:github_url: hide
2019-07-25 15:49:11 +02:00
Rémi Verschelde
a95cd08285 Use HTTPS for links which support it 2018-12-13 12:06:02 +01:00
Rémi Verschelde
4ef06a4135 Removing trailing whitespace
With `sed -i $(rg -l '[[:blank:]]*$' -g'!classes') -e 's/[[:blank:]]*$//g'`
2018-11-20 11:08:34 +01:00
Rémi Verschelde
b6cb5c3ee7 Add layout.html template to set hreflang attributes
Tentative fix for search engines pointing English-seeking users
to localized docs.
2018-06-12 23:08:16 +02:00