all repos — elgit @ 5ae6e6b8ba5bad8b7a981ac0db5f3974806be935

fork of legit: web frontend for git, written in go

rename to elgit

Alan Pearce
commit

5ae6e6b8ba5bad8b7a981ac0db5f3974806be935

parent

8ed87caffe08bcd6487a7d585763d05d91634f44

1 file changed, 6 insertions(+), 2 deletions(-)

changed files
M routes/template.goroutes/template.go
@@ -9,10 +9,10 @@ "net/http"
"path/filepath" "strings" - "git.icyphox.sh/legit/git" "github.com/alecthomas/chroma/v2/formatters/html" "github.com/alecthomas/chroma/v2/lexers" "github.com/alecthomas/chroma/v2/styles" + "go.alanpearce.eu/elgit/git" ) func (d *deps) Write404(w http.ResponseWriter) {
@@ -72,7 +72,11 @@ }
} } -func (d *deps) showFileWithHighlight(name, content string, data map[string]any, w http.ResponseWriter) { +func (d *deps) showFileWithHighlight( + name, content string, + data map[string]any, + w http.ResponseWriter, +) { tpath := filepath.Join(d.c.Dirs.Templates, "*") t := template.Must(template.ParseGlob(tpath))