* language menu * allow for subdir in baseURL * Update netlify.toml and github actions to use Hugo 0.121.1 * Documented i18n approaches in exampleSite * Attempted & Abandoned images from assets as recommended approach in content pages- it seems Hugo expects to access those only programmatically, not via markdown. --------- Co-authored-by: Zdenek K <zdenek.kedaj@gmail.com>
19 lines
No EOL
1.1 KiB
Markdown
19 lines
No EOL
1.1 KiB
Markdown
---
|
|
title: "Über mich (DE folder)"
|
|
weight: 3
|
|
header_menu: true
|
|
---
|
|
|
|
This demonstates localized content placed in dedicated language folder, `content/de`. This way you won't have to use localization suffix with the `.md` file. Both localisation approaches (separate folder, suffixes in the same folder) can be used and even mixed.
|
|
|
|
See i18n configuration in `[languages]` section of `config.toml`.
|
|
|
|
#### Local content
|
|
Localised content can be put in dedicated folder `content/de/`. Images should be naturally found from there:
|
|

|
|
|
|
#### Assets
|
|
Images in assets folder can be localised, conventionally by adding `.de` suffix. However, assets may be tricky, see next section for details
|
|

|
|
|
|
Note the filename of this section is a bit artificial to avoid conflict with other examples in en folder. If named the same, this one wouldn't render. However normally you wouldn't have one page localized two ways. |