Comments (2)
Yeah that's as expected.
When a template is extending another, anything outside of blocks is ignored since it's not part of the rendering. Move it inside a block to have it work.
from zola.
I see, that's somewhat inconvenient.
If anyone else runs into this, as a workaround you can add an empty block for variables at the start of the parent template, then add that block in the child template and declare the variables there, they will be available in all other blocks.
from zola.
Related Issues (20)
- Feature Request: Image Dithering HOT 2
- No `paginator` in `get_section()` HOT 5
- [Feature Request] XMPP: Post to PubSub HOT 2
- Long shortcodes / How to best insert images from markdown
- Longevity of Zola HOT 1
- Slugify of german umlaute (ä, ö, ü) HOT 3
- Including multiple template files with unknown names in other templates HOT 1
- Function call `load_data` fails on next branch. HOT 1
- Question about `regex_replace` HOT 1
- How do I get a relative link to a page? HOT 3
- Suggestion: compress_sass_output config option HOT 7
- Register a function in Tera HOT 5
- Compile error when the same taxonomy tag is used twice with different case HOT 1
- Ignore links to #top when checking anchors HOT 1
- Zola does not recognise sections HOT 2
- [bug] page.taxonomies.tags not found in context, but it is there
- Zola should detect cyclic extends with a clean message HOT 1
- Slow build HOT 1
- GitLab CI/CD gets stuck
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zola.