We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I was unable to render my site with the pelican-striped-html5up theme because of the following critical error:
pelican-striped-html5up
CRITICAL TypeError: not all arguments converted during string formatting
Using pelican -D I tracked the source down to this portion of the head block (lines 19–21):
pelican -D
head
{% if CATEGORY_FEED_ATOM and category %} <link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_ATOM|format(category.slug) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Categories Atom Feed" /> {% endif %}
In all cases of category being truthy, category.slug is a simple string so I don't understand why the format call fails, but replacing:
category
category.slug
format
{{ CATEGORY_FEED_ATOM|format(category.slug) }}
with
{{ CATEGORY_FEED_ATOM|format(slug=category.slug) }}
resolves the issue.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I was unable to render my site with the
pelican-striped-html5up
theme because of the following critical error:Using
pelican -D
I tracked the source down to this portion of thehead
block (lines 19–21):In all cases of
category
being truthy,category.slug
is a simple string so I don't understand why theformat
call fails, but replacing:with
resolves the issue.
The text was updated successfully, but these errors were encountered: