Skip to content

Commit

Permalink
Prevent rendering _index.gmi.md as posts
Browse files Browse the repository at this point in the history
  • Loading branch information
tdemin committed Nov 19, 2020
1 parent 1f5257a commit 2211c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/gmnhg/main.go
Expand Up @@ -198,7 +198,7 @@ func main() {
if err != nil {
return err
}
if n := info.Name(); info.IsDir() || !strings.HasSuffix(n, ".md") || n == "_index.md" {
if n := info.Name(); info.IsDir() || !strings.HasSuffix(n, ".md") || n == "_index.md" || n == indexMdFilename {
return nil
}
fileContent, err := ioutil.ReadFile(path)
Expand Down

0 comments on commit 2211c5f

Please sign in to comment.