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

footer: Add ability to hide the RSS Feed item #2786

Closed
wants to merge 1 commit into from
Closed

footer: Add ability to hide the RSS Feed item #2786

wants to merge 1 commit into from

Conversation

rlaphoenix
Copy link
Contributor

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.

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.
@rlaphoenix
Copy link
Contributor Author

rlaphoenix commented Jan 16, 2021

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.

@SeanKilleen
Copy link
Contributor

In case you or others aren't aware, a quick workaround:

This will override the theme and cause the RSS feed link to disappear.

@rlaphoenix
Copy link
Contributor Author

In case you or others aren't aware, a quick workaround:

* In your code, create an `_includes` folder if one doesn't exist.

* Copy the contents of https://raw.githubusercontent.com/mmistakes/minimal-mistakes/master/_includes/footer.html into a `footer.html` file in that folder.

* Remove the line with the `<li>` that shows the feed icon.

This will override the theme and cause the RSS feed link to disappear.

Yes but that is in no way ideal.

@SeanKilleen
Copy link
Contributor

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.

@rlaphoenix
Copy link
Contributor Author

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.

@SeanKilleen
Copy link
Contributor

SeanKilleen commented Jan 16, 2021

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 👍

@SeanKilleen
Copy link
Contributor

....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.

@rlaphoenix
Copy link
Contributor Author

....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.

@rlaphoenix rlaphoenix closed this Jan 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants