-
Notifications
You must be signed in to change notification settings - Fork 140
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
feat: remove 404 pages from the sitemap. closes #113 #164
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could also be a Document, in addition to a static file, right?
@pathawks Sorry, something's up with GitHub and I'm not able to respond directly to your review comment. Do you mean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! 👾
I do what I can. |
@JHabdas Sorry, I was confused. What I meant is that It is probably unlikely that somebody is outputting |
I believe |
@benbalter oic. on it |
@pathawks @benbalter thanks for ensuring excellence in your work. I've added the missing fixture and test. you guys have eagle eyes, I swear. |
lib/sitemap.xml
Outdated
{% for file in page.static_files %} | ||
{% assign static_files = page.static_files | where_exp:'page','page.name != "404.html"' %} | ||
{% for file in static_files %} | ||
{{ page.path }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably don't need to output the path here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops
One comment. Otherwise LGTM Thanks for getting this done 🍻🎉 |
spec/jekyll-sitemap_spec.rb
Outdated
@@ -93,10 +93,14 @@ | |||
expect(contents).to match /\/some-subfolder\/htm\.htm/ | |||
end | |||
|
|||
it "does include assets or any static files with .pdf extension" do | |||
it "does include assets any static files with .pdf extension" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry, @pathawks restoring
@jekyllbot: merge +minor |
@JHabdas Thank you so much! I appreciate your patience. |
No more need for |
poof. fixes #113.