Support custom feed filenames in RSS plugin #8397
Replies: 1 comment
-
Hi @skedastically,
You could use my guide for dynamic overrides with hooks: The latest iteration of the implementation includes 2 hooks, the mkdocs-material/material/templates/base.html Lines 30 to 33 in c79364a In a more recent post about the
Another way would be to use a hook with monkey patching and modify the And you'd check the provided urls and swap out the value from material with your own. A more simpler way would be to just override the whole The code within is rather stable since years, so you could copy everything over to your override except for the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Right now, names of RSS feeds are hardcoded in the head meta. This makes the use of custom
feeds_filenames
incomplete, as the<link>
hrefs still points tofeed_rss_updated.xml
andfeed_rss_created.xml
even when they're nonexistent.While I can use some theme overrides to add custom meta tags in head, the old one is still pre-generated by Mkdocs-Material, causing confusing entries for RSS clients. Are there any workarounds to delete these entries? I'll appreciate it lots.
With all that said, would the maintainers be interested in supporting dynamic feed filenames? Should it just be a reference to a config file field, I hope it would not be too hard to do. Thank you
Beta Was this translation helpful? Give feedback.
All reactions