index : paprika

A blogging platform written in Rust for Cloudflare Workers, integrated with Standard Notes

diff options
authorPeter Cai <[email protected]>2020-04-13 18:14:34 +0800
committerPeter Cai <[email protected]>2020-04-13 18:14:34 +0800
commit9bd347e1e5a070972703ad8986ccc8e8b2a59308 (patch)
parent44ca2f6de32f8fcc4180ece889207a6e6b29af41 (diff)
README: document cache for themes
1 files changed, 1 insertions, 1 deletions
diff --git a/ b/
index 056b52b..5d24c31 100644
--- a/
+++ b/
@@ -170,7 +170,7 @@ A theme is a set of Handlebars templates and static assets located in a direct s
- ...
-Everything inside the `static` folder will be available at `https://<your_domain>/static/`.
+Everything inside the `static` folder will be available at `https://<your_domain>/static/`. These resources are subject to browser caching, so to ensure the resources are always re-loaded by the browser when Paprika or the theme updates, you should add a query string to links to your static resources using the `build_num` helper available via Handlebars, e.g. `?ver={{ build_num }}` (see the default theme for details). This ensures that each time Paprika gets rebuilt, the links will be different due to the `build_num` and all clients should fetch the updated resources.
`home.hbs` will be used to render the home page (post list), while `post.hbs` will be used for single-post pages (i.e. the detail page). These templates can import other templates located in the same directory via the `{{> some_other_template.hbs }}` syntax.