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

.\ zola serve Error: Reason: Variable categories not found in context while rendering 'category/list.html' #2671

Open
osias-espindola opened this issue Oct 14, 2024 · 1 comment

Comments

@osias-espindola
Copy link

Bug Report

Environment

Zola version: 0.19.2

Expected Behavior

Instalaçao do thema seagull @Hugo-Trentesaux

Current Behavior

nao estou consequindo fazer executar o comando ./zola server sem o erro

Error: Failed to serve the site
Error: Failed to render a list of category page.
Error: Reason: Failed to render 'category/list.html'
Error: Reason: Variable categories not found in context while rendering 'category/list.html'

ja criei o category/list.html mesmo assim o erro persiste tanto para category como para tags, ja instalei outro themas e nao deram esse erro. Acredito que tenha algo especifico pois existe uma metadados no confg.toml

taxonomies = [
{name = "authors"},
{name = "tags"},
{name = "category"},
]

que fazem referencia a esses informaceos

Step to reproduce

quando uso o comando .\zola serve

@Hugo-Trentesaux
Copy link
Contributor

Hugo-Trentesaux commented Oct 15, 2024

Instalaçao do thema seagull @Hugo-Trentesaux

That's probably an incompatibility between my theme and this Zola version.
I'll have a look at this. (seagull repo is here: https://git.lacontrevoie.fr/HugoTrentesaux/seagull)

[edit] I can't reproduce your bug. The file used to render taxonomies is generic, it's taxonomy_list.html.
I just updated the theme but it has no link with that. Can you tell which version you're using? Maybe the theme index has to be updated as well 🤔

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

No branches or pull requests

3 participants
@Hugo-Trentesaux @osias-espindola and others