From: Danilo M. Date: Sun, 5 Apr 2026 06:33:04 +0000 (+0200) Subject: config: set up sections, menus, and chroma highlighting X-Git-Url: https://git.danix.xyz/?a=commitdiff_plain;h=d76c946248b6c7133cbc0ecd0cb402a728a410fc;p=danix2-hugo-theme.git config: set up sections, menus, and chroma highlighting --- diff --git a/hugo.toml b/hugo.toml index 59cbe11..b49f651 100644 --- 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