pagr

A 'static site generator', built using dati.
Log | Files | Refs | Atom

commit fdc9fbccb2bdd3ab8e71be576a2f68c53edc1066
parent 70edff1f870461aede1fc1e972bc5f19019e4330
Author: gearsix <gearsix@tuta.io>
Date:   Tue,  6 Jul 2021 12:38:39 +0100

ignore content paths containing .ignore

Diffstat:
Mcontent.go | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/content.go b/content.go @@ -40,6 +40,10 @@ func LoadContentDir(dir string) (c Content, e error) { return err } + if strings.Contains(fpath, ".ignore") { + return nil + } + var path string if info.IsDir() { path = "/" + strings.TrimPrefix(fpath, dir)