Fix importer

This commit is contained in:
JP Hastings-Spital 2024-10-11 09:22:13 +01:00
parent b689eac310
commit 3932b6bc68

View file

@ -91,7 +91,7 @@ func outputArticle(article Article, outputDir string) error {
articlePath := path.Join(outputDir, fmt.Sprintf("%s.md", slug))
dirArticlePath := path.Join(outputDir, slug, "index.md")
if _, err := os.Stat(dirArticlePath); os.IsNotExist(err) {
if _, err := os.Stat(dirArticlePath); err == nil {
articlePath = dirArticlePath
}