Skip to content

Commit

Permalink
Merge branch 'main' into multiple-site
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhsudhir committed Jun 25, 2024
2 parents 2448325 + 93339ae commit 1f6e75f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmd/anna/anna.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,15 @@ func (cmd *Cmd) VanillaRender(siteDirPath string) {

_, err := os.Stat(siteDirPath + "public/")
if os.IsNotExist(err) {
} else {
// Check if the public folder exists ands copy contents

_, err := os.Stat(helpers.SiteDataPath + "public/")
if os.IsNotExist(err) {
} else {
// Copies the contents of the 'static/' directory to 'rendered/'
helper.CopyDirectoryContents(siteDirPath+"public/", siteDirPath+"rendered/")
helper.CopyDirectoryContents(siteDirPath+"public/", siteDirPath+"rendered/")
}
}

e.GenerateSitemap(siteDirPath + "rendered/sitemap.xml")
Expand Down

0 comments on commit 1f6e75f

Please sign in to comment.