Skip to content
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

Exclude redirect pages from sitemap #69

Merged
merged 2 commits into from
May 20, 2015
Merged

Exclude redirect pages from sitemap #69

merged 2 commits into from
May 20, 2015

Conversation

pathawks
Copy link
Member

If a page is nothing more than a redirect to another page, it should be excluded from the sitemap.

There are other ways this could be done (like coordinating priority), but I think since we want a specific result it would be best to take specific action.

Please look over my code before merging; this is outside of my wheelhouse.

Fixes jekyll/jekyll-sitemap#75

@parkr
Copy link
Member

parkr commented May 19, 2015

Seems pretty good. @benbalter ?

@benbalter
Copy link
Contributor

👍 was actually just noticing this myself the other day, but didn't realize it was such an easy fix. Nice work.

parkr added a commit that referenced this pull request May 20, 2015
@parkr parkr merged commit 7275ac1 into jekyll:master May 20, 2015
parkr added a commit that referenced this pull request May 20, 2015
@parkr
Copy link
Member

parkr commented May 20, 2015

Tested to make sure the inverse was true (if we don't change this code, that the sitemap does indeed include the redirect pages). Merged and will release v0.8.0 now!

@pathawks pathawks deleted the sitemap-exclude branch May 20, 2015 15:35
@jekyll jekyll locked and limited conversation to collaborators Feb 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sitemap: false does nothing with some pages
4 participants