1
0
Fork 0
forked from github/pelican
pelican-theme/pelican
Forest 0fe290c321 Make PAGE_EXCLUDES work with subdirs. Fixes #1500.
The old code was naively comparing the strings in PAGE_EXCLUDES to the
subdirectory names produced by os.walk(). (Same with ARTICLE_EXCLUDES.)
This had two surprising effects:

Setting PAGE_EXCLUDES=['foo'] would exclude all directories named foo,
regardless of whether they were in the top-level content directory or
nested deep within a directory whose contents should not be excluded.

Setting PAGE_EXCLUDES=['subdir/foo'] would never exclude any directories.

In other words, there is no way to exclude a subdirectory without risking
the accidental exclusion of other directories with the same name elsewhere
in the file system.

This change fixes the problem, so 'subdir/foo' and 'foo' will be distinct
and both work as expected. If anyone out there is depending on the old
behavior, they will have to update their settings. I don't expect it to
affect most users yet, since Pelican doesn't yet make nested directory
structures very useful. When it does, this fix will become important to
more people.
2014-11-01 17:38:20 -07:00
..
tests Make PAGE_EXCLUDES work with subdirs. Fixes #1500. 2014-11-01 17:38:20 -07:00
themes Run tag name through escape filter to avoid invalid HTML 2014-02-18 15:01:31 +01:00
tools fix missing tab in Makefile template 2014-10-20 15:22:11 +02:00
__init__.py Make StaticGenerator skip content sources. Refs #1019. 2014-10-31 16:46:01 -07:00
contents.py Make StaticGenerator skip content sources. Refs #1019. 2014-10-31 16:46:01 -07:00
generators.py Make PAGE_EXCLUDES work with subdirs. Fixes #1500. 2014-11-01 17:38:20 -07:00
log.py Refactor logging handling 2014-07-22 12:39:39 -04:00
paginator.py Refactor logging handling 2014-07-22 12:39:39 -04:00
readers.py Fixes #1420: Handle multiple definitions of standard metadata for Markdown 2014-08-22 17:53:36 -04:00
rstdirectives.py Support for pygment defaults and relevant documentation 2013-09-15 23:13:17 -07:00
server.py Refactor logging handling 2014-07-22 12:39:39 -04:00
settings.py Make StaticGenerator skip content sources. Refs #1019. 2014-10-31 16:46:01 -07:00
signals.py Add feed_written signal 2014-08-28 20:09:42 +02:00
urlwrappers.py Refactor logging handling 2014-07-22 12:39:39 -04:00
utils.py Merge pull request #1348 from vjousse/davidmarble-page-order-by 2014-09-18 16:12:51 -07:00
writers.py Merge pull request #1366 from Scheirle/paginated_relative_urls_fix2 2014-09-18 16:15:21 -07:00