diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-12-23 16:47:57 -0330 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-12-23 16:47:57 -0330 |
| commit | 91fdb1440c99e4614e980d027c627dfc4a029230 (patch) | |
| tree | 0295e470a89a13bf6e2626204f3f38188fa27025 | |
| parent | 627cdfd418c6d55c4b8e130068aa34de23324c0d (diff) | |
| download | samanthony.xyz-91fdb1440c99e4614e980d027c627dfc4a029230.zip | |
move menu entries from theme config to site config
| -rw-r--r-- | hugo.toml | 16 | ||||
| -rw-r--r-- | layouts/baseof.html | 2 | ||||
| -rw-r--r-- | themes/aoidh/hugo.toml | 20 |
3 files changed, 16 insertions, 22 deletions
@@ -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 @@ <!DOCTYPE html> -<html lang="{{ site.Language.LanguageCode }}" dir="{{ or site.Language.LanguageDirection `ltr` }}"> +<html lang="{{ site.Language.LanguageCode }}"> <head> {{ partial "head.html" . }} </head> 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 |