shroomgit

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

config.go
1package main
2
3type config struct {
4 title string
5 logo string
6 logoHref string
7 logoWidth int
8 logoHeight int
9 desc string
10}
11
12var shindex = config{
13 title: "Repositories",
14 logo: "logo.png",
15 logoHref: "https://",
16 logoWidth: 0,
17 logoHeight: 0,
18 desc: "",
19}
20
21var repoIconArt = `
22<svg width="32" height="32">
23<rect x="6" y="10" width="20" height="20"
24fill="none" stroke="currentColor" stroke-width="2" transform="rotate(45 20 20)"/></svg>
25`