Hello,
The relLangUrl function doesn’t seem to be working in my content pages.
This code in content/fr/features/index.html
<a href="{{ "contract-edition" | relLangURL }}" class="text-decoration-none text-black">
<h2 class="fs-4 fw-bold">Édition de contrat</h2>
</a>
returns:
<a href="{{ " contract-edition"="" |="" rellangurl="" }}"="" class="text-decoration-none text-black">
My folder structure:
content
- fr
- features
+ index.html
+ contract-edition.html
My config/_default/hugo.json:
{
"theme": "ugosign",
"title": "Ugosign - production",
"enableSass": true,
"defaultContentLanguage": "fr",
"languages": {
"fr": {
"contentDir": "content/fr",
"disabled": false,
"languageCode": "fr-FR",
"languageDirection": "ltr",
"languageName": "Français",
"weight": 0
},
"en": {
"contentDir": "content/en",
"disabled": false,
"languageCode": "en",
"languageDirection": "ltr",
"languageName": "English",
"weight": 1
}
},
"module": {
"imports": {
"path": "github.com/gohugoio/hugo-mod-bootstrap-scss/v5"
}
}
}