-
Right now, names of RSS feeds are hardcoded in the head meta. This makes the use of custom 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.
Replies: 1 comment 2 replies
-
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.
Hi, thanks for the guidance again. I followed your hints and from some other places and got to create this hook:
I didn't think it was that easy, but it is.
So I put in some bs4 to specify the elems, and also coded in the filenames gotten from the RSS plugin. The final code becomes: