gtx


Branch: develop

Author
thewhodidthis <thewhodidthis@fastmail.com>
Date
Feb. 19 '23 10:40:49
Commit
ceafa33bd24948b94be20312b7d1c0425fce7932
Parent
d5144e2f0226241d631228678375fbaf836454c1
Changes
diff --git a/project.go b/project.go
index e15f141..cda9ba0 100644
--- a/project.go
+++ b/project.go
@@ -146,12 +146,12 @@ func (p *project) writeMainIndex(branches []branch) {
 	}
 
 	page := page{
+		Base: "./",
 		Data: Data{
 			"Branches": branches,
 			"Source":   p.options.Source,
 			"Project":  p.Name,
 		},
-		Base:  "./",
 		Title: p.Name,
 	}
 
@@ -184,6 +184,7 @@ func (p *project) writeCommitDiff(base string, b branch, c commit, par string) {
 	}
 
 	page := page{
+		Base: "../../",
 		Data: Data{
 			"Diff": diff{
 				Body:   fmt.Sprintf("%s", out),
@@ -192,7 +193,6 @@ func (p *project) writeCommitDiff(base string, b branch, c commit, par string) {
 			},
 			"Project": p.Name,
 		},
-		Base:  "../../",
 		Title: strings.Join([]string{p.Name, b.Name, c.Abbr}, ": "),
 	}
 
@@ -226,12 +226,12 @@ func (p *project) writeBranchPage(b branch) {
 	}
 
 	page := page{
+		Base: "../../",
 		Data: Data{
 			"Commits": b.Commits,
 			"Branch":  b,
 			"Project": p.Name,
 		},
-		Base:  "../../",
 		Title: strings.Join([]string{p.Name, b.Name}, ": "),
 	}
 
@@ -334,11 +334,11 @@ func (p *project) writeObject(dst string, obj object, base string, b branch, c c
 	}
 
 	page := page{
+		Base: "../../",
 		Data: Data{
 			"Object":  *o,
 			"Project": p.Name,
 		},
-		Base:  "../../",
 		Title: strings.Join([]string{p.Name, b.Name, c.Abbr, obj.Path}, ": "),
 	}
 
@@ -379,11 +379,11 @@ func (p *project) writeCommitPage(base string, b branch, c commit) {
 	}
 
 	page := page{
+		Base: "../../",
 		Data: Data{
 			"Commit":  c,
 			"Project": p.Name,
 		},
-		Base:  "../../",
 		Title: strings.Join([]string{p.Name, b.Name, c.Abbr}, ": "),
 	}