spanezz / staticsite

Static site generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provide filter for files excluded from site

hartmans opened this issue · comments

I'm an Emacs user, and I'd like to exclude my editor backup files from the generated site.
With the code today, I end up with things like index.md~ ending up copied as assets into the generated site.
Obviously I can git clean before publishing or go set up some sort of CI pipeline, but for some of my sites that's more infrastructure than I need.
So I'd like a setting that allows me to exclude files matching a particular predicate from consideration

You should now be able to add ignore: ['*~'] to .staticfile to get rid of those files