shroomgit

generate static pages of git repos
git clone https://git.davidvoz.net/shroomgit.git
index
logs
tree

config.go
1package main
2
3type config struct {
4 favicon string
5 logo string
6 logoHref string
7 logoWidth int
8 logoHeight int
9 url string
10}
11
12var shgit = config{
13 favicon: "logo.png",
14 logo: "logo.png",
15 logoHref: "..",
16 logoWidth: 40,
17 logoHeight: 40,
18 url: "https://git.davidvoz.net/",
19}
20
21var styles = map[string]string{
22 "codeline": `
23 .codeline {
24 text-align: right;
25 vertical-align: top;
26 user-select: none;
27 }
28 `,
29}