From 2211c5ffdd49836212842e2e0e1d55d2ee4d8086 Mon Sep 17 00:00:00 2001 From: Timur Demin Date: Fri, 20 Nov 2020 04:17:20 +0500 Subject: [PATCH] Prevent rendering _index.gmi.md as posts --- cmd/gmnhg/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/gmnhg/main.go b/cmd/gmnhg/main.go index 8a5d82f..0f51589 100644 --- a/cmd/gmnhg/main.go +++ b/cmd/gmnhg/main.go @@ -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)