add symlink to html
parent
50cb60cdc4
commit
e8125b419f
|
@ -0,0 +1 @@
|
||||||
|
minor type="added" "add html rendering"
|
|
@ -0,0 +1 @@
|
||||||
|
minor type="added" "add configurable pager"
|
|
@ -0,0 +1 @@
|
||||||
|
patch type="fixed" "symlink html directory"
|
|
@ -401,6 +401,7 @@ func Publish() {
|
||||||
if _, err := os.Stat(PathUserWWW); os.IsNotExist(err) {
|
if _, err := os.Stat(PathUserWWW); os.IsNotExist(err) {
|
||||||
os.MkdirAll(PathUserWWW, 0700)
|
os.MkdirAll(PathUserWWW, 0700)
|
||||||
os.Symlink(path.Join(PathUserConfig, "style.css"), path.Join(PathUserWWW, "style.css"))
|
os.Symlink(path.Join(PathUserConfig, "style.css"), path.Join(PathUserWWW, "style.css"))
|
||||||
|
os.Symlink(PathUserWWW, path.Join(PathUserHTML, cfg.PublishDir))
|
||||||
}
|
}
|
||||||
file, err := os.Create(path.Join(PathUserWWW, "index.html"))
|
file, err := os.Create(path.Join(PathUserWWW, "index.html"))
|
||||||
defer file.Close()
|
defer file.Close()
|
||||||
|
|
Loading…
Reference in New Issue