feat: compatibility with hugo 0.146.5

This commit is contained in:
2025-04-26 21:49:40 +02:00
parent 98d489e55e
commit 73bf1f9e8a
4 changed files with 8 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ services:
volumes:
- ./docker-nginx-conf/enable-hugo-reverse-proxy.conf:/etc/nginx/enable-hugo-reverse-proxy.conf
hugo:
image: frankywahl/hugo
image: hugomods/hugo:git-non-root-0.146.7
working_dir: "/app/v2"
user: "${UID}:${GID}"
volumes:

View File

@@ -15,15 +15,18 @@ enableGitInfo = true
languageCode = 'en-US'
languageDirection = 'ltr'
languageName = 'English'
languageFlag = '🇺🇸'
weight = 0
[languages.en.params]
languageFlag = '🇺🇸'
[languages.fr]
disabled = false
languageCode = 'fr-FR'
languageDirection = 'ltr'
languageName = 'French'
languageFlag = '🇫🇷'
title = 'HugoPoi Blog'
weight = 1
[languages.fr.params]
languageFlag = '🇫🇷'
[taxonomies]

View File

@@ -1,4 +1,4 @@
{{ if .Site.IsMultiLingual }}
{{ if hugo.IsMultilingual }}
<nav class="language-selector">
<ul>