Implicit argument `page` not found in context or passed directly
Author: 3ulaliaCreated Sep 27, 2026Updated Sep 27, 2026
Bug Report
Environment
Zola version: 0.23.6
Expected Behavior
Given both Zola's docs and Tera's docs suggest this exact pattern, I'd expect to be able to use fields of the page context inside a component.
Current Behavior
❯ cat templates/shortcodes/math.html
{% component math(@page) %}
[...]
{% endcomponent %}
❯ zola build
[...]
> Building site...
> ERROR Failed to build the site
> ERROR Failed to render section content of '/build/8bhsf1kn6xwrch637qfnbxwwjg0mkvkb-source/content/_index.es.md'
> ERROR Reason: error: Implicit argument `page` not found in context or passed directly.
> --> __tera_one_off:20:4
> |
> 20 | {% <math> %}e=m c^2{% </math> %}
> | ^^^^^^^^^^^^^^^^^^^^^^^^^^Step to reproduce
See https://github.com/3ulalia/www for the repository in question; nix build will run the relevant build script (basically just a wrapper for zola build)
Source: getzola/zola