Skip to content
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

🐛 fix(header): don't fail if custom_subset absent #132

Merged
merged 1 commit into from
Sep 9, 2023

Conversation

xvello
Copy link
Contributor

@xvello xvello commented Sep 9, 2023

Following the install instructions on an empty zola project gives the following error:

Error: Failed to build the site
Error: Failed to render pager 1
Error: Reason: Failed to render 'index.html' (error happened in 'base.html').
Error: Reason: Variable `config.extra.custom_subset` not found in context while rendering 'partials/header.html'

Adding this config option to my config.toml fixes it, but the template should be resilient to that option being absent, like it does with other options.

@welpo
Copy link
Owner

welpo commented Sep 9, 2023

Great catch. Thank you!

@welpo welpo merged commit c79407e into welpo:main Sep 9, 2023
@welpo welpo added the bug Something isn't working label Sep 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants