Only parse through documents/pages/posts

Fixes https://github.com/jekyll/jekyll-redirect-from/issues/47