git-preview @ main

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

config: fix go-import pretty url
Sun, 18 Dec 2022
2 files changed, 7 insertions(+), 4 deletions(-)
M config/config.go

@@ -23,7 +23,7 @@ Description string `yaml:"description"`

} `yaml:"meta"` Misc struct { GoImport struct { - PrettyURL string `yaml:"string"` + PrettyURL string `yaml:"prettyURL"` } `yaml:"goImport"` } `yaml:"misc"` Server struct {
M routes/routes.go

@@ -114,13 +114,16 @@ return

} cloneURL := fmt.Sprintf("https://%s/%s", d.c.Server.FQDN, name) + prettyURL := d.c.Misc.GoImport.PrettyURL - if d.c.Misc.GoImport.PrettyURL == "" { - d.c.Misc.GoImport.PrettyURL = cloneURL + if prettyURL == "" { + prettyURL = cloneURL + } else {

… preview truncated