-
Notifications
You must be signed in to change notification settings - Fork 25.6k
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
footer: Add ability to hide the RSS Feed item #2786
Conversation
In _config.yml atom already exists and is a dictionary, so I could simply add a "show" key, and for backwards compatibility, it will still work as long as `atom.path` isn't empty.
Ideally for the if check, do a check if "show" in atom exists, instead of having to fallback to atom.path, as I see now that atom.path is quite optional and defaults to "feed.xml" meaning it would cause backwards compatibility problems. I'm very new to Jekyll so I don't know how I would do that. |
In case you or others aren't aware, a quick workaround:
This will override the theme and cause the RSS feed link to disappear. |
Yes but that is in no way ideal. |
Sure -- just letting you know there's a relatively straight-forward way to accomplish what you're looking for. Mentioning this because I saw this issue as I came here to grab the footer code and do exactly that for a site I'm working on. |
Right, just I'd prefer to keep to the official theme layouts and such for easier upgrading without forgetting about any manual overrides and such. |
I've added a pull request (#2787) to this as it makes sense to me and didn't seem too involved to implement. Feel free to add your thoughts there as well 👍 |
....sigh. I am so sorry. I was completely mistaken and I had been reading this as an issue instead of a pull request. Silly mistake, I apologize! I think my PR may be slightly more thorough; if you agree, feel free to close this. |
Yeah dont fret, yours works out better anyway. |
This is an enhancement or feature.
Summary
In _config.yml atom already exists and is a dictionary, so I could simply add a "show" key, and for backwards compatibility, it will still work as long as
atom.path
isn't empty.Context
I want to create a documentation-only page using mm, which won't use jekyll-feed at all, so having a 404'ing RSS feed enforced isn't ideal.