git-preview @ main

static git web frontend but with images and html previews + code truncation

templates: add missing title to repo page
Sun, 05 Nov 2023
2 files changed, 2 insertions(+), 1 deletions(-)
M routes/routes.go

@@ -152,6 +152,7 @@ data["readme"] = readmeContent

data["commits"] = commits data["desc"] = getDescription(path) data["servername"] = d.c.Server.Name + data["meta"] = d.c.Meta data["gomod"] = isGoModule(gr) if err := t.ExecuteTemplate(w, "repo", data); err != nil {
M static/style.css

@@ -34,7 +34,7 @@ margin: 0;

} body { - max-width: 750px; + max-width: 1000px; padding: 0 13px; margin: 40px auto; }