summaryrefslogtreecommitdiffstats
path: root/hugo.toml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-15 21:18:40 +0200
committerDanilo M. <danix@danix.xyz>2026-04-15 21:18:40 +0200
commiteb8a17482fc138c861db685f9efc86871bf2d7d2 (patch)
treea092c13a4858d434340e2c683748226b0004308e /hugo.toml
parent1ac2e084c2a2f2fb9d04a2bfabd1e308799ee9fc (diff)
downloaddanixxyz-eb8a17482fc138c861db685f9efc86871bf2d7d2.tar.gz
danixxyz-eb8a17482fc138c861db685f9efc86871bf2d7d2.zip
Complete multilingual theme implementation with language-aware menus
- Refactor hugo.toml to define menus separately for each language using pageRef - Simplify header and hamburger-menu templates to use Hugo-native language handling - Update content structure with proper language prefix organization - Remove JavaScript language-switcher in favor of Hugo's native approach - Add new layout templates for /is/ section with list view - Update HANDOFF.md with current implementation status - Rebuild minified CSS with updated template changes Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Diffstat (limited to 'hugo.toml')
-rw-r--r--hugo.toml68
1 files changed, 49 insertions, 19 deletions
diff --git a/hugo.toml b/hugo.toml
index 0f3d7af..a3970ce 100644
--- a/hugo.toml
+++ b/hugo.toml
@@ -6,7 +6,7 @@ enableRobotsTXT = true
# Hugo Pipes
[minify]
- minifyOutput = true
+ minifyOutput = false
disableXML = false
# Languages
@@ -17,6 +17,32 @@ enableRobotsTXT = true
weight = 1
[languages.it.params]
locale = "it_IT"
+ siteDescription = "Blatero di varie cose."
+
+ # Italian menu with language-aware links
+ [[languages.it.menus.main]]
+ identifier = "articles"
+ pageRef = "/articles"
+ name = "articles"
+ weight = 1
+
+ [[languages.it.menus.main]]
+ identifier = "about"
+ pageRef = "/is"
+ name = "about"
+ weight = 2
+
+ [[languages.it.menus.main]]
+ identifier = "contact"
+ pageRef = "/is/here"
+ name = "here"
+ weight = 3
+
+ [[languages.it.menus.main]]
+ identifier = "legal"
+ pageRef = "/is/legal"
+ name = "legal"
+ weight = 4
[languages.en]
languageName = "EN"
@@ -24,32 +50,36 @@ enableRobotsTXT = true
weight = 2
[languages.en.params]
locale = "en_US"
+ siteDescription = "I ramble about stuff."
-# Main menu
-[[menus.main]]
- name = "articles"
- url = "/articles/"
- weight = 1
+ # English menu with language-aware links
+ [[languages.en.menus.main]]
+ identifier = "articles"
+ pageRef = "/articles"
+ name = "articles"
+ weight = 1
-[[menus.main]]
- name = "about"
- url = "/is/"
- weight = 2
+ [[languages.en.menus.main]]
+ identifier = "about"
+ pageRef = "/is"
+ name = "about"
+ weight = 2
-[[menus.main]]
- name = "contact"
- url = "/is/here/"
- weight = 3
+ [[languages.en.menus.main]]
+ identifier = "contact"
+ pageRef = "/is/here"
+ name = "here"
+ weight = 3
-[[menus.main]]
- name = "legal"
- url = "/is/legal/"
- weight = 4
+ [[languages.en.menus.main]]
+ identifier = "legal"
+ pageRef = "/is/legal"
+ name = "legal"
+ weight = 4
# Theme parameters
[params]
siteName = "danix.xyz"
- siteDescription = "Portfolio and blog"
author = "Danilo Macrì"
email = "danix@danix.xyz"