Skip to content

Fix bloghome template broken by Pelican 4.12.0#180

Merged
janhoy merged 1 commit into
apache:mainfrom
janhoy:fix-bloghome-category-attribute
May 19, 2026
Merged

Fix bloghome template broken by Pelican 4.12.0#180
janhoy merged 1 commit into
apache:mainfrom
janhoy:fix-bloghome-category-attribute

Conversation

@janhoy
Copy link
Copy Markdown
Contributor

@janhoy janhoy commented May 19, 2026

Page objects don't have a Category object like Articles do — their category metadata is stored as a plain string. Using selectattr on "category.name" worked accidentally before but Pelican 4.12.0 (#177) raises a Jinja2 UndefinedError. Switch to comparing the category string directly with "equalto".

Page objects don't have a Category object like Articles do — their
category metadata is stored as a plain string. Using selectattr on
"category.name" worked accidentally before but Pelican 4.12.0 raises
a Jinja2 UndefinedError. Switch to comparing the category string
directly with "equalto".
@janhoy janhoy merged commit 51c7b23 into apache:main May 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant