zola/components/site
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
..
benches Make path to config.toml independent from root dir (#1023) 2020-05-23 11:55:45 +02:00
src Implement get_file_hash (#1044) 2020-06-09 22:38:29 +02:00
tests Implement get_file_hash (#1044) 2020-06-09 22:38:29 +02:00
Cargo.toml Use Rust 2018 edition (#885) 2020-02-02 17:48:43 -08:00