jandecaluwe / urubu

A micro CMS for static websites, with a focus on good navigation practices.
urubu.jandecaluwe.com
GNU Affero General Public License v3.0
179 stars 36 forks source link

File is not checked ignored if it's in a directory #83

Closed CezCz closed 2 years ago

CezCz commented 4 years ago

If we have a file named _test.md in directory test/test/ it is not being ignored by urubu.

I believe the following line: https://github.com/jandecaluwe/urubu/blob/69847d41f3bee921ffa3ae9935fa53836f88ef69/urubu/project.py#L167

should be if any(fnmatch.fnmatch(os.path.basename(relfn), ip) for ip in ignore_patterns):