diff options
| author | delta <darkussdelta@gmail.com> | 2026-07-25 15:39:11 +0200 |
|---|---|---|
| committer | delta <darkussdelta@gmail.com> | 2026-07-25 15:39:11 +0200 |
| commit | 6979ec35432ae68c01644b37f06fb0164d9ea312 (patch) | |
| tree | 00d17b072d80ab5dfa94026a9b40c73f32784c00 /.zs/components/nav | |
| parent | f1290dc0d7fb38e3647d08c7592b4ff83a1c0624 (diff) | |
fix mobile layout
Diffstat (limited to '.zs/components/nav')
| -rwxr-xr-x | .zs/components/nav | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/.zs/components/nav b/.zs/components/nav index 935cd92..c787517 100755 --- a/.zs/components/nav +++ b/.zs/components/nav @@ -21,6 +21,7 @@ end ---@field index boolean? ---@field dir string? ---@field inside Set? +---@field icon string ---@type Link[] local links = { @@ -29,23 +30,27 @@ local links = { title = "home", inside = set { "index" - } + }, + icon = "home" }, { url = "/projects.html", title = "projects", inside = set { "prismite" - } + }, + icon = "git" }, { url = "/posts.html", title = "ramblings", - dir = "blog" + dir = "blog", + icon = "notebook" }, { url = "/buttons.html", - title = "buttons" + title = "buttons", + icon = "external" }, } @@ -79,7 +84,14 @@ for _, link in ipairs(links) do { tag = "a", href = link.url, - title, + { + tag = "div", + style = [[mask-image: url("/assets/svg/]] .. link.icon .. [[.svg")]] + }, + { + tag = "span", + title + } } }) end |
