]> danix's work - danix2-hugo-theme.git/commitdiff
config: set up sections, menus, and chroma highlighting
authorDanilo M. <redacted>
Sun, 5 Apr 2026 06:33:04 +0000 (08:33 +0200)
committerDanilo M. <redacted>
Sun, 5 Apr 2026 06:33:04 +0000 (08:33 +0200)
hugo.toml

index 59cbe11ba102403b9d82ed2657019f1f6b1615d5..b49f651de684927ae362c7860e24cd511f7fa119 100644 (file)
--- a/hugo.toml
+++ b/hugo.toml
@@ -1,24 +1,48 @@
-baseURL = 'https://example.org/'
+baseURL = 'https://danix.xyz/'
+languageCode = 'en-US'
+title = 'danilo m.'
 locale = 'en-US'
-title = 'My New Hugo Project'
 
-[menus]
-  [[menus.main]]
-    name = 'Home'
-    pageRef = '/'
-    weight = 10
+# Sections
+[outputs]
+  home = ['HTML', 'RSS']
+  section = ['HTML']
+  page = ['HTML']
 
-  [[menus.main]]
-    name = 'Posts'
-    pageRef = '/posts'
-    weight = 20
+[markup]
+  [markup.highlight]
+    codeFences = true
+    lineNos = false
+    guessSyntax = false
+    hl_Lines = ""
+    hl_inline = false
+    tabWidth = 2
+    # Style: use 'monokai' as base and customize in CSS
+    style = 'monokai'
+    noClasses = false
+  [markup.tableOfContents]
+    endLevel = 3
+    ordered = false
+    startLevel = 2
 
-  [[menus.main]]
-    name = 'Tags'
-    pageRef = '/tags'
-    weight = 30
+# Menus
+[[menu.main]]
+  name = 'articles'
+  pageRef = '/articles'
+  weight = 10
 
-[module]
-  [module.hugoVersion]
-    extended = false
-    min = '0.146.0'
+[[menu.main]]
+  name = 'about'
+  pageRef = '/is'
+  weight = 20
+
+[[menu.main]]
+  name = 'contact'
+  pageRef = '/is/here'
+  weight = 30
+
+# Content sections
+[params]
+  description = 'Writing about IT, life, and the things that matter.'
+  author = 'Danilo M.'
+  avatar = 'DM'  # Can be image path or initials