From 91fdb1440c99e4614e980d027c627dfc4a029230 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Tue, 23 Dec 2025 16:47:57 -0330 Subject: move menu entries from theme config to site config --- hugo.toml | 16 +++++++++++++++- layouts/baseof.html | 2 +- themes/aoidh/hugo.toml | 20 -------------------- 3 files changed, 16 insertions(+), 22 deletions(-) diff --git a/hugo.toml b/hugo.toml index 5ed3998..79b60a3 100644 --- a/hugo.toml +++ b/hugo.toml @@ -2,5 +2,19 @@ baseURL = 'https://www.samanthony.xyz/' languageCode = 'en-us' title = "Sam Anthony's Webpage" theme = 'aoidh' + [params] - author = "Sam Anthony" + author = "Sam Anthony" + +[menus] + [[menus.main]] + name = 'Home' + pageRef = '/' + + [[menus.main]] + name = 'Posts' + pageRef = '/posts' + + [[menus.main]] + name = 'Tags' + pageRef = '/tags' diff --git a/layouts/baseof.html b/layouts/baseof.html index dd61d01..6cdd0e6 100644 --- a/layouts/baseof.html +++ b/layouts/baseof.html @@ -1,5 +1,5 @@ - + {{ partial "head.html" . }} diff --git a/themes/aoidh/hugo.toml b/themes/aoidh/hugo.toml index 5c26950..1410ef9 100644 --- a/themes/aoidh/hugo.toml +++ b/themes/aoidh/hugo.toml @@ -1,23 +1,3 @@ -baseURL = 'https://example.org/' -languageCode = 'en-US' -title = 'My New Hugo Site' - -[menus] - [[menus.main]] - name = 'Home' - pageRef = '/' - weight = 10 - - [[menus.main]] - name = 'Posts' - pageRef = '/posts' - weight = 20 - - [[menus.main]] - name = 'Tags' - pageRef = '/tags' - weight = 30 - [module] [module.hugoVersion] extended = false -- cgit v1.2.3