 |
shroomgit |
generate static pages of git repos
git clone https://git.davidvoz.net/shroomgit.git |
commit 691990a895269f8ccb038345ea2139613605ea5e
Author: David Voznyarskiy <davidv@no-reply@disroot.org>
Date: Sat Mar 21 19:47:57 2026 -0700
minor changes per request from debugger
diff --git a/shindex/shindex.go b/shindex/shindex.go
index bfc68ea..c892ee8 100644
--- a/shindex/shindex.go
+++ b/shindex/shindex.go
@@ -81,7 +81,7 @@ func basicPart() {
fmt.Printf("<title>%s</title>\n", config.Title)
fmt.Println("<link rel=\"stylesheet\" href=\"style.css\" \\>")
fmt.Println("<link rel=\"icon\" type=\"image/png\" href=\"favicon.png\" \\>")
- fmt.Println("</head>\n")
+ fmt.Println("</head>")
fmt.Println("<body>")
fmt.Println("<table>")
fmt.Printf("<tr><td><a href=\"%s\">", config.LogoHref)
@@ -105,7 +105,7 @@ func getRepoName(repo string) string {
content := string(data)
- for _, line := range strings.Split(content, "\n") {
+ for line := range strings.SplitSeq(content, "\n") {
line = strings.TrimSpace(line)
if strings.HasPrefix(line, "url =") {
parts := strings.Fields(line)