-
Notifications
You must be signed in to change notification settings - Fork 12
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
Enabling TAGS_SAVE_AS causes site build to fail #49
Comments
AFAICT the same applies to all the other settings in the same section: not only are the features currently unused, they are unsupported at present |
It looks like the page reference is coming from the template, specifically base.html. But I have no idea how to fix the issue. |
I had a sudden idea: Pelican uses templates for tags (and authors etc). I've checked the Pelican simple template example, and it does not reference 'page' in the base.html template file. As a temporary work-round, I think it would be possible to derive tag.html and tags.html from a different base. |
I think this needs to be fixed by changes to the template(s). |
Another option might be to fork the templates for the However, as mentioned, I'm not a Pelican or Python expert by far, so I'm not sure of the consequences of such a fork. |
Two changes are needed to enable tags:
However if TAGS_SAVE_AS is unconditionally updated in this repo, then (as has been seen) all Pelican builds that use the ASF template will fail. AFAICT the www-site uses its own copy of the templates, so a fork is not needed. So the www-site templates can be fixed without affecting other builds, but there needs to be a way to change the TAGS_SAVE_AS setting on a per site basis. This is nothing to do with Pelican or Python per se. |
Note that tags are only processed by Pelican in articles, not in pages. See apache/www-site#196 (comment) for a possible solution |
I'm trying to enable the Pelican tag-based navigation for www.apache.org
(apache/www-site#196) and as a first step I tried enabling the TAGS_SAVE_AS feature, by hardcoding it for now, setting
TAGS_SAVE_AS = 'tags.html'
inbin/pelican.auto.ezt
Just doing this causes a site build of the sibling
template-site
repository to fail withIt looks like something in this module is getting in the way, but I know little about Pelican and even less about Python so I'm not sure where to look. Pointers are welcome.
Here's my failure scenario:
And the
site-generated
folder is not created, nothing is generated.The text was updated successfully, but these errors were encountered: