repos / pgit

static site generator for git
git clone https://github.com/picosh/pgit.git

commit
1b38e02
parent
27df5bc
author
Eric Bower
date
2023-06-18 15:38:46 +0000 UTC
fix: rm html subdir in public folder
1 files changed,  +1, -1
M main.go
+1, -1
1@@ -136,7 +136,7 @@ func writeHtml(data *WriteData) {
2 	bail(err)
3 
4 	outdir := viper.GetString("outdir")
5-	dir := path.Join(outdir, data.RepoName, data.Subdir)
6+	dir := path.Join(outdir, "html", data.RepoName, data.Subdir)
7 	fmt.Println(dir)
8 	fmt.Println(data.Name)
9 	err = os.MkdirAll(dir, os.ModePerm)