docs: describe linking formats and languages

This commit is contained in:
Sören Weber 2025-02-08 18:53:53 +01:00
parent c0c2b83059
commit 59414a1b79
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
15 changed files with 73 additions and 23 deletions
docs/content/configuration

View file

@ -21,6 +21,14 @@ For the file system scenario, you are not allowed to change this value.
disableExplicitIndexURLs = true
{{< /multiconfig >}}
## Legacy Cross-Language Links
You can link to pages of different languages by appending the `lang` query parameter with the language code to the URL, e.g. `/my-page?lang=pir`.
In previous releases of the theme you had to prepend the language code to the URL, e.g. `/pir/my-page` to achieve this.
If you still need the old behavior, you can set `enableLegacyLanguageLinks=true` in your `hugo.toml`. Note that this legacy feature may be removed in the future.
## Patching the `relref` Shortcode
{{% badge style="cyan" icon="gears" title=" " %}}Option{{% /badge %}} While the usage of `relref` is obsolete and discouraged by Hugo for a while, existing installations may still use it.

View file

@ -8,7 +8,7 @@ weight = 4
This page shows you, how to configure custom [image effects](authoring/markdown#image-effects) on top of existing ones.
This setting can also [be overridden by your front matter](authoring/imageeffects).
This setting can also [be overridden by your front matter](authoring/linking/imageeffects).
If you don't configure anything in your `hugo.toml`, the image effects default to

View file

@ -8,7 +8,7 @@ weight = 3
This page shows you, how to configure custom [link effects](authoring/markdown#link-effects) on top of existing ones.
This setting can also [be overridden by your front matter](authoring/linkeffects).
This setting can also [be overridden by your front matter](authoring/linking/linkeffects).
If you don't configure anything in your `hugo.toml`, the link effects default to