From 018565fae79000fbaa5f44db95bb9f48f7ebc1fb Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Sun, 28 Dec 2025 21:41:55 -0330 Subject: nav grid --- hugo.toml | 23 +++++++++++++++++++++++ themes/aoidh/assets/aoidh.css | 11 +++-------- 2 files changed, 26 insertions(+), 8 deletions(-) diff --git a/hugo.toml b/hugo.toml index 3f34d8f..30ea457 100644 --- a/hugo.toml +++ b/hugo.toml @@ -12,11 +12,34 @@ theme = 'aoidh' [[menus.main]] name = 'Home' pageRef = '/' + weight = 1 [[menus.main]] name = 'Posts' pageRef = '/posts' + weight = 2 + + [[menus.main]] + name = 'Projects' + url = 'http://git.samanthony.xyz/' + weight = 3 [[menus.main]] name = 'Tags' pageRef = '/tags' + weight = 4 + + [[menus.main]] + name = 'Foo' + pageRef = '/foo' + weight = 4 + + [[menus.main]] + name = 'Bar' + pageRef = '/bar' + weight = 4 + + [[menus.main]] + name = 'Baz' + pageRef = '/baz' + weight = 4 diff --git a/themes/aoidh/assets/aoidh.css b/themes/aoidh/assets/aoidh.css index eacc098..13efae4 100644 --- a/themes/aoidh/assets/aoidh.css +++ b/themes/aoidh/assets/aoidh.css @@ -39,18 +39,13 @@ header { } nav ul { - display: flex; - flex-wrap: wrap; + display: grid; + grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); + gap: .4rem .8rem; } nav li { display: inline-block; - width: 16.66666667%; /* 1/6 */ - margin: .1rem 0 .1rem 1.5rem; -} - -nav li:first-child { - margin-left: 0; } nav a { -- cgit v1.2.3