Handle both Jekyll posts and pages correctly. Support for file exclusions.