reprose

Basic Go package server
git clone _git@git.zakaria.org/reprose.git
Log | Files | Refs | README

commit b35f9a5daed012ebc338475e7c958efcf37c5718
parent d6de670ff6f6be4f7eb915a8c76a98853f9ee218
Author: zakaria <e-zk@users.noreply.github.com>
Date:   Mon, 31 Jan 2022 11:47:07 +1000

Add some CSS - make it look a bit nicer

Diffstat:
Mmain.go | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/main.go b/main.go @@ -14,7 +14,10 @@ const ( Title = "zakaria's golang repo" Host = "go.zakaria.org" DefaultRedirect = "https://git.zakaria.org/" - Head = `<meta charset="utf-8"><meta content="width=device-width,initial-scale=1" name="viewport">` + Head = `<meta charset="utf-8"><meta content="width=device-width,initial-scale=1" name="viewport"><style> + pre { line-height: calc(100% * 1.1618); font-size: 100% } + body { margin: 1rem auto; max-width: 50rem; font-size: 100%; line-height: calc(100% * 1.618) } + </style>` ) type Repo struct { @@ -86,7 +89,7 @@ func main() { fmt.Fprintf(w, "<pre>%s\n\n", Title) fmt.Fprintf(w, "Packages:\n") for basename, repo := range Repos { - fmt.Fprintf(w, " — %s\n", printRepo(basename, repo)) + fmt.Fprintf(w, "&bullet; %s\n", printRepo(basename, repo)) } fmt.Fprintf(w, "</pre>") fmt.Fprintf(w, "</body></html>")