1
0
mirror of https://github.com/systemd/systemd synced 2024-07-09 04:26:06 +00:00

chore(docs): change permalink at the Jekyll config

Some of the internal links didn't work.
To make them work we had two options:

1. Keep the trailing slash at the jecyll config:
The built structure of the html files is one directory for each file, including a html file.
This is why a relative link including the `../` is required to get out of the built folder and make it work.
e.g.
config: permalink: /:title/
HACKING.md: [Coding Style](../CODING_STYLE)

2. Remove the trailing slash, the built structure is like the structure in dev: one html file for each markdown file.
In this case, the links as they are implemented just work.
e.g.
config: permalink: /:title
HACKING.md: [Coding Style](CODING_STYLE)

We use option 2 :)
This commit is contained in:
hulkoba 2024-03-05 11:57:58 +01:00
parent a738c6d9b8
commit 997a84b2e1
No known key found for this signature in database
GPG Key ID: ACB6C4A3A4F2BE2F

View 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