Skip to content

Commit 12b6372

Browse files
committed
Add note on caching of templates
Signed-off-by: squidfunk <[email protected]>
1 parent 5164325 commit 12b6372

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/customization.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,16 @@ the `docs` directory:
121121

122122
## Extending the theme
123123

124+
!!! info "Template caching"
125+
126+
Zensical caches theme templates for performance reasons. If you make changes to your templates or partials, you need to clear the cache in order to see your changes reflected when running the preview server:
127+
128+
```
129+
zensical build --clean
130+
```
131+
132+
This is a temporary limitation that will be fixed in a future release. Subscribe to #103 to get notified.
133+
124134
Zensical uses [MiniJinja], a Rust-based template engine inspired by Python’s
125135
popular [Jinja] system, to render the HTML structure of your site – including
126136
the header, footer, and navigation sidebars. It rendered the entire scaffold
@@ -153,7 +163,7 @@ your template overrides:
153163

154164
``` yaml
155165
theme:
156-
custom_dir: overrides
166+
custom_dir: overrides
157167
```
158168

159169
The `custom_dir` path is resolved relative to your configuration file.

0 commit comments

Comments
 (0)