mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 22:16:07 +01:00
Fix importer
This commit is contained in:
parent
b689eac310
commit
3932b6bc68
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue