Prevent rendering _index.gmi.md as posts
This commit is contained in:
parent
1f5257ac90
commit
2211c5ffdd
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue