diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-12-28 21:41:55 -0330 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-12-28 21:41:55 -0330 |
| commit | 018565fae79000fbaa5f44db95bb9f48f7ebc1fb (patch) | |
| tree | b6633923079f206dc633fa275318c87d98dc8016 | |
| parent | c45f3ae525762eb5abfbaadd07605e58706ab9b9 (diff) | |
| download | samanthony.xyz-018565fae79000fbaa5f44db95bb9f48f7ebc1fb.zip | |
nav grid
| -rw-r--r-- | hugo.toml | 23 | ||||
| -rw-r--r-- | themes/aoidh/assets/aoidh.css | 11 |
2 files changed, 26 insertions, 8 deletions
@@ -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 { |