add symlink to html
This commit is contained in:
parent
50cb60cdc4
commit
e8125b419f
1
.nanpa/html.kdl
Normal file
1
.nanpa/html.kdl
Normal file
@ -0,0 +1 @@
|
||||
minor type="added" "add html rendering"
|
1
.nanpa/pager.kdl
Normal file
1
.nanpa/pager.kdl
Normal file
@ -0,0 +1 @@
|
||||
minor type="added" "add configurable pager"
|
1
.nanpa/symlink.kdl
Normal file
1
.nanpa/symlink.kdl
Normal file
@ -0,0 +1 @@
|
||||
patch type="fixed" "symlink html directory"
|
@ -401,6 +401,7 @@ func Publish() {
|
||||
if _, err := os.Stat(PathUserWWW); os.IsNotExist(err) {
|
||||
os.MkdirAll(PathUserWWW, 0700)
|
||||
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"))
|
||||
defer file.Close()
|
||||
|
Loading…
x
Reference in New Issue
Block a user