robin/maivi

a tiny cute lua web framework

git clone https://git.robinwobin.dev/robin/maivi

robindocs: wip897859d

push-srxvuswpkqxx
825 B42 linesraw
1return function(_, _)
2  return h.div({
3    id = "sidebar",
4
5    h.ul({
6      h(Iter.lst(maivi.data.sections)
7        :map(function(_, data)
8          local href = string.format("#%s", data.id)
9
10          return h.li({
11            class = data.header and "header" or nil,
12            h.a({
13              href = href,
14              data.section,
15            }),
16          })
17        end)
18        :to()),
19    }),
20
21    h.footer({
22      h.div({
23        [[built with ]],
24        h.a({
25          href = "https://codeberg.org/comfysage/maivi",
26          target = "_blank",
27          "maivi",
28        }),
29        [[ <3]],
30      }),
31      h.div({
32        [[& powered by ]],
33        h.a({
34          href = "https://ebil.club",
35          target = "_blank",
36          "ebil.club",
37        }),
38        [[ >:3]],
39      }),
40    }),
41  })
42end