Commit 1833a80
Eric Bower
·
2023-08-13 12:38:07 -0400 EDT
parent 8710d5e
refactor: root project
3 files changed,
+4,
-7
+0,
-2
| ... | ... | @@ -6,8 +6,6 @@ | |
| 6 | 6 | <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| 7 | 7 | <title>{{template "title" .}}</title> | |
| 8 | 8 | ||
| 9 | - | <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> | |
| 10 | - | ||
| 11 | 9 | <meta name="keywords" content="git code forge repo repository" /> | |
| 12 | 10 | ||
| 13 | 11 | <link rel="stylesheet" href="/main.css" /> |
+1,
-2
| ... | ... | @@ -1,7 +1,6 @@ | |
| 1 | 1 | {{define "header"}} | |
| 2 | 2 | <h1 class="text-xl"> | |
| 3 | - | <a href="/">repos</a> | |
| 4 | - | <span> / {{.Repo.RepoName}}</span> | |
| 3 | + | {{.Repo.RepoName}} | |
| 5 | 4 | </h1> | |
| 6 | 5 | ||
| 7 | 6 | <div class="text-lg"> |
M
main.go
+3,
-3
| ... | ... | @@ -797,15 +797,15 @@ func main() { | |
| 797 | 797 | } | |
| 798 | 798 | config.Logger.Infof("%+v", config) | |
| 799 | 799 | ||
| 800 | - | config.copyStatic(filepath.Join(config.Outdir, "main.css"), mainCss) | |
| 801 | - | config.copyStatic(filepath.Join(config.Outdir, "syntax.css"), syntaxCss) | |
| 802 | - | ||
| 803 | 800 | if len(revs) == 0 { | |
| 804 | 801 | bail(fmt.Errorf("you must provide --revs")) | |
| 805 | 802 | } | |
| 806 | 803 | ||
| 807 | 804 | config.writeRepo() | |
| 808 | 805 | ||
| 806 | + | config.copyStatic(filepath.Join(config.Outdir, "main.css"), mainCss) | |
| 807 | + | config.copyStatic(filepath.Join(config.Outdir, "syntax.css"), syntaxCss) | |
| 808 | + | ||
| 809 | 809 | url := filepath.Join("/", "index.html") | |
| 810 | 810 | config.Logger.Info(url) | |
| 811 | 811 | } |