summaryrefslogtreecommitdiff
path: root/cmd/generate/main.go
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-04-14 00:12:53 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-04-14 00:13:36 -0600
commitd342e7ed223ee7c3c42c402b3eaca990e20a053c (patch)
treefe6480f40c4bf5e6dde880dc77b051c7918a4755 /cmd/generate/main.go
parentc793ff8f7b37c028953c33480ebfa52b5a0b0001 (diff)
Rework not not have imworkingon stuff in the top-level
Diffstat (limited to 'cmd/generate/main.go')
-rw-r--r--cmd/generate/main.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd/generate/main.go b/cmd/generate/main.go
index 85f452e..ab6409a 100644
--- a/cmd/generate/main.go
+++ b/cmd/generate/main.go
@@ -36,15 +36,15 @@ func main() {
var htmlTmplStr string
func mainWithError() error {
- contribs, err := ReadContribs("contribs.yml")
+ contribs, err := ReadContribs("imworkingon/contribs.yml")
if err != nil {
return err
}
- tags, err := ReadTags("tags.yml")
+ tags, err := ReadTags("imworkingon/tags.yml")
if err != nil {
return err
}
- upstreams, err := ReadUpstreams("upstreams.yml")
+ upstreams, err := ReadUpstreams("imworkingon/upstreams.yml")
if err != nil {
return err
}
@@ -53,7 +53,7 @@ func mainWithError() error {
return contribs[i].SubmittedAt.After(contribs[j].SubmittedAt)
})
- tmpl := template.Must(template.New("imworkingon.html").
+ tmpl := template.Must(template.New("imworkingon.html.tmpl").
Funcs(template.FuncMap{
"md2html": MarkdownToHTML,
"getUpstream": func(c Contribution) Upstream {
@@ -83,7 +83,7 @@ func mainWithError() error {
}); err != nil {
return err
}
- if err := os.WriteFile("imworkingon.html", out.Bytes(), 0666); err != nil {
+ if err := os.WriteFile("public/imworkingon.html", out.Bytes(), 0666); err != nil {
return err
}
return nil