diff --git a/main.go b/main.go index 116162e..2884466 100644 --- a/main.go +++ b/main.go @@ -44,7 +44,6 @@ func main() { flag.StringVar(&opt.Source, "s", "", "Source repository") flag.Var(&opt.Branches, "b", "Target branches") flag.StringVar(&opt.Template, "t", "", "Page template") - flag.StringVar(&opt.URL, "u", "https://host.net/project.git", "Source URL") flag.BoolVar(&opt.Quiet, "q", false, "Be quiet") flag.BoolVar(&opt.Force, "f", false, "Force rebuild") flag.Parse() diff --git a/page.html.tmpl b/page.html.tmpl index 8bfe637..c158464 100644 --- a/page.html.tmpl +++ b/page.html.tmpl @@ -35,7 +35,7 @@ </header> <main> <hr> - {{- with .Data.Link}} + {{- with .Data.Source}} <h2>Repository</h2> <p>Static archive for: <code>{{.}}</code></p> {{- end}} diff --git a/project.go b/project.go index dbedb25..e36434a 100644 --- a/project.go +++ b/project.go @@ -144,7 +144,7 @@ func (p *project) writeMainIndex(branches []branch) { page := page{ Data: Data{ "Branches": branches, - "Link": p.options.URL, + "Source": p.options.Source, "Project": p.Name, }, Base: "./",
home › develop › 9269865 › 35baabd