]> danix's work - danix.xyz-2.git/commitdiff
feat: add site configuration with bilingual setup and article types
authorDanilo M. <redacted>
Wed, 15 Apr 2026 13:26:54 +0000 (15:26 +0200)
committerDanilo M. <redacted>
Wed, 15 Apr 2026 13:26:54 +0000 (15:26 +0200)
hugo.toml [new file with mode: 0644]

diff --git a/hugo.toml b/hugo.toml
new file mode 100644 (file)
index 0000000..3dcbe1e
--- /dev/null
+++ b/hugo.toml
@@ -0,0 +1,91 @@
+baseURL = "https://danix.xyz/"
+languageCode = "it-IT"
+title = "danix.xyz"
+theme = "danix-xyz-hacker"
+enableRobotsTXT = true
+minify.disableXML = false
+
+# Hugo Pipes
+[minify]
+  minifyOutput = true
+
+# Languages
+[languages]
+  [languages.it]
+    languageName = "IT"
+    contentDir = "content/it"
+    weight = 1
+    [languages.it.params]
+      locale = "it_IT"
+
+  [languages.en]
+    languageName = "EN"
+    contentDir = "content/en"
+    weight = 2
+    [languages.en.params]
+      locale = "en_US"
+
+# Main menu
+[[menus.main]]
+  name = "articles"
+  url = "/articles/"
+  weight = 1
+
+[[menus.main]]
+  name = "is"
+  url = "/is/"
+  weight = 2
+
+[[menus.main]]
+  name = "here"
+  url = "/is/here/"
+  weight = 3
+
+[[menus.main]]
+  name = "legal"
+  url = "/is/legal/"
+  weight = 4
+
+# Theme parameters
+[params]
+  siteName = "danix.xyz"
+  siteDescription = "Portfolio and blog"
+  author = "Danilo Macrì"
+  email = "danix@danix.xyz"
+
+  # Theme options
+  syntaxHighlight = true
+  lineNumbers = false
+  readingTime = true
+  shareButtons = true
+  relatedPosts = true
+
+  # Colors
+  primaryAccent = "#a855f7"
+  secondaryAccent = "#00ff88"
+
+  # Article types with color mapping
+  [params.articleTypes.life]
+    label = "Life"
+    color_dark = "#f59e0b"
+    color_light = "#d97706"
+
+  [params.articleTypes.photo]
+    label = "Photo"
+    color_dark = "#ec4899"
+    color_light = "#be185d"
+
+  [params.articleTypes.link]
+    label = "Link"
+    color_dark = "#38bdf8"
+    color_light = "#0284c7"
+
+  [params.articleTypes.quote]
+    label = "Quote"
+    color_dark = "#00ff88"
+    color_light = "#008f5a"
+
+  [params.articleTypes.tech]
+    label = "Tech"
+    color_dark = "#a855f7"
+    color_light = "#7c3aed"