getzola / zola

A fast static site generator in a single binary with everything built-in. https://www.getzola.org
https://www.getzola.org
MIT License
14.2k stars 970 forks source link

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

Open osias-espindola opened 1 month ago

osias-espindola commented 1 month ago

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 commented 1 month ago

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 :thinking: