]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
docs: don't suffix page permalink with a slash
authorFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 10 Apr 2024 15:21:42 +0000 (17:21 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 15 Apr 2024 08:54:33 +0000 (10:54 +0200)
As it breaks relative links to other pages. For example, the
BOOT_LOADER_INTERFACE page has a relative link to
AUTOMATIC_BOOT_ASSESSMENT. With a slash in the page's permalink, that
link leads to:

http://127.0.0.1:4000/BOOT_LOADER_INTERFACE/AUTOMATIC_BOOT_ASSESSMENT

which is incorrect. Dropping the trailing slash makes the link link to
the correct place:

http://127.0.0.1:4000/AUTOMATIC_BOOT_ASSESSMENT

Resolves: #32088

docs/_config.yml

index 412db1f413ff15b2be687496cb34c9316ced087f..e8b9eea8cd31c35b10ea5d6299e68dc68bdbd874 100644 (file)
@@ -4,7 +4,7 @@ title: systemd
 baseurl: "" # the subpath of your site, e.g. /blog/
 url: "https://systemd.io" # the base hostname & protocol for your site
 
-permalink: /:title/
+permalink: /:title
 
 # Build settings
 markdown: kramdown