You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/customization.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,6 +121,16 @@ the `docs` directory:
121
121
122
122
## Extending the theme
123
123
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
+
124
134
Zensical uses [MiniJinja], a Rust-based template engine inspired by Python’s
125
135
popular [Jinja] system, to render the HTML structure of your site – including
126
136
the header, footer, and navigation sidebars. It rendered the entire scaffold
@@ -153,7 +163,7 @@ your template overrides:
153
163
154
164
``` yaml
155
165
theme:
156
-
custom_dir: overrides
166
+
custom_dir: overrides
157
167
```
158
168
159
169
The `custom_dir` path is resolved relative to your configuration file.
0 commit comments