mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-10-30 09:23:09 +00:00
dir: Fix atom template output path
This commit is contained in:
parent
b20ffe0d41
commit
495941a8cb
2
dir.go
2
dir.go
|
@ -248,7 +248,7 @@ func (d *Dir) write(dstDir string, task *Task) error {
|
|||
// Write the atom feed
|
||||
if d.feed != nil {
|
||||
const path = "atom.xml"
|
||||
dstPath := pathpkg.Join(dstDir, path)
|
||||
dstPath := pathpkg.Join(dirPath, path)
|
||||
os.MkdirAll(dstDir, 0755)
|
||||
if err := os.WriteFile(dstPath, d.feed, 0644); err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in a new issue