-
Notifications
You must be signed in to change notification settings - Fork 117
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
How to disable redirects.json? #189
Comments
also tried (with and without slash) defaults:
-
scope:
path: '/redirects.json'
values:
sitemap: false |
This comment has been minimized.
This comment has been minimized.
@benbalter @DirtyF do you need some info on this? |
I am unable to reproduce this issue in our CI suite. The following test already passes: jekyll-redirect-from/spec/integrations_spec.rb Lines 88 to 91 in 6f80c6b
|
Hmm, I'll have to double check and create a repro then. |
This issue has been automatically marked as stale because it has not been commented on for at least two months. The resources of the Jekyll team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial. This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions. |
Can we please reopen this issue? I don't know much about Ruby and haven't studied the code of this plugin but the following line suggests to me that the file
I want to be able to redirect certain pages without exposing all redirected pages to the public. While creating an empty |
A workaround for this can be accomplished by:
The first step makes this plugin not generate a destination file since a source one exists. The second step tells Jekyll to not spit out your redirects.json in your destination directory. Ideally, this plugin should have an option to make this call optional. |
Y'all are welcome to submit a Pull Request. |
We were just trying to disable this as well, actually. Here's one possible option, #207! |
Re #147
I updated from an older Jekyll version and now my site has an extra
redirects.json
file. That lurks into sitemap and rss feed.Question is simple how can I disable generating that file?
I tried this without luck:
The text was updated successfully, but these errors were encountered: