-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extra feature: ignore subdirectories #63
Comments
Hi Timmmy, |
Hi Simon, Sorry for the late response... That would probably be a better solution for most users. However, in my case, it would be difficult to maintain such a list since there is no general pattern in which directories to ignore. If you put code in the settings file, is it executed when the settings are loaded? What do you think? |
I would like to see pattern based ignores. |
Hi @RSully , |
Great! I don't see why it shouldn't just apply to both - presumably using a glob pattern? |
I have added two settings, mostly for performance reasons (if you want to filter only directories, you don't want to match the patterns on all the files). It takes a list of pattern with the fnmatch module: |
Hi Simon, Thank you for creating and maintaining an excellent piece of open source software!! |
Hi Timmmy, |
Hi Simon,
I've added support to ignore a directory (including subdirectories) in a fork (https://github.com/Timmmy/sigal/tree/Testbranch2). (Code needs some cleanup though)
When a file with the name '.sigalignore' is detected in a directory, it will ignore this directory and all subdirectories. I use this because we store all our pictures in one filetree, but we don't want all the pictures in the album.
Are you interested in including this feature in your repo?
Kind regards,
Tim
The text was updated successfully, but these errors were encountered: