index : paprika

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

path: root/README.md
diff options
context:
space:
mode:
authorPeter Cai <[email protected]>2020-04-13 18:14:34 +0800
committerPeter Cai <[email protected]>2020-04-13 18:14:34 +0800
commit9bd347e1e5a070972703ad8986ccc8e8b2a59308 (patch)
treeab755c615702660dd32ed7a284ea04c7002f7b53 /README.md
parent44ca2f6de32f8fcc4180ece889207a6e6b29af41 (diff)
downloadpaprika-9bd347e1e5a070972703ad8986ccc8e8b2a59308.tar.gz
README: document cache for themes
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 056b52b..5d24c31 100644
--- a/README.md
+++ b/README.md
@@ -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.