Null tag {slug} is being generated in addition to the other tags #3391
-
Hello everyone, I have been trying to debug this weird issue locally for a couple of days without any success. I have been happily deploying my custom theme on my blog with great success and adding features to it. One thing that was missing was tags, so I thought to hack together a feature addition to the blog enabling the generation of tag pages and an overall tags page. IssueWhen I add tags to my Markdown blog posts, they all appear in And this null tag lists all the articles on my blog. To illustrate:
Problematic codeFirst things first.
Weirder behaviour (hopefully useful)When I set
I see no errors or warnings from What I triedI tried reading the source code, searching for how I tried removing all tags from my posts - in this case, a lone single tag, Questions
Please help - I have stayed up late a couple of nights going slightly crazy over this. Thanks a lot for reading. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi Guru. I can't replicate the problem you described. The relevant settings for my Justin Mayer site are: TAG_URL = "tag/{slug}/"
TAG_SAVE_AS = "tag/{slug}/index.html"
TAGS_SAVE_AS = "tags/index.html" … which seem to be the same as the settings I am seeing in the paste-bin link you provided. My suggestion is to (1) delete your output folder, (2) use |
Beta Was this translation helpful? Give feedback.
-
I don't why you had |
Beta Was this translation helpful? Give feedback.
Hi Guru. I can't replicate the problem you described. The relevant settings for my Justin Mayer site are:
… which seem to be the same as the settings I am seeing in the paste-bin link you provided.
My suggestion is to (1) delete your output folder, (2) use
pelican-quickstart
to generate a fresh site with defaultpelicanconf.py
, and (3) adjust configuration settings one line at a time — generating the site after each change — to see if/where the problem gets introduced. Make sense?