zola/components/templates
Hannu Hartikainen 6708f7637c
Implement get_file_hash (#1044)
* Fix get_url(cachebust=true)

The previous implementation looked for static files in the wrong place.
Look in static_path, output_path and content_path. If file can't be
found in any of them, print a warning to stderr and fall back to using
a timestamp.

Add a test to ensure it also works in practice, not just in theory.

* Implement get_file_hash
2020-06-09 22:38:29 +02:00
..
src Implement get_file_hash (#1044) 2020-06-09 22:38:29 +02:00
Cargo.toml Change get_url(cachebust=true) to use a hash (#1032) 2020-05-23 11:46:50 +02:00