category_meta plugin is broken with Pelican 3.7.1 #855
The category_meta plugin is broken in Pelican 3.7.1.
There are two problems causing issues. I have documented them and the "solutions" for these issues in this repo: https://github.com/jaredandrews/pelican_category_meta_problems
#846 references a part of this issue but I figured I could help out by providing more thorough documentation.
Issue 1: category_meta fails to do anything when the index file doesn't have a date
When I go to the
Solution: Added a date to my category index file. This is neither specified by the documentation of category_meta nor does it really make sense. I suspect at one point Pelican did not require articles it reads to have dates.
You can see this issue in action by checking out jaredandrews/pelican_category_meta_problems@859278b
Issue 2: category_meta causes an AttributeError
This is caused by line 73 in
You can see this issue in action by checking out jaredandrews/pelican_category_meta_problems@62dac28
If I remove line 73 from
You can see the plugin working again by checking out jaredandrews/pelican_category_meta_problems@a99f9a6
I'm not 100% certain of the author of category_meta's intentions, but presumably removing this line to "fix" the plugin causes a loss of functionality.
I would love to help fix this issue but I am not very familiar with the Pelican code base nor am I 100% sure with what the
Is there a way to reassign a categories slug in Pelican 3.7.1?
I don't know the answer to this question nor do I know why this would have been removed. I hope this documentation can help someone who does know :)
The text was updated successfully, but these errors were encountered:
Hey @manugarri, thanks for the response. Sorry for the delay in getting back to you, I just discovered I had my GitHub notifications turned off!
Technically speaking, a fix exists in jaredandrews/pelican_category_meta_problems@a99f9a6
I'm just not totally confident that the changes I made don't break something else the original author of the plugin intended it to do (as outlined in my original post above).
For what it's worth, I have been using my modified version of the plugin on my website for almost nine months and it has been working great for my purposes. You can see the plugin in action along with a description of what I am using it for here: https://jaredandrews.com/making-this-site-part-4-category-template.html
I would be happy to clean up the code and make a pull request if that sounds good to you.