zola/components
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
..
config Remove unneeded build_timestamp on config 2020-05-28 09:21:42 +02:00
errors Update syntect, using rust-onig with bindgen temporarily 2020-05-12 20:07:02 +02:00
front_matter WIP: add an 'updated' field to pages 2020-04-14 17:29:46 +05:30
imageproc Update image to 0.23 2020-02-10 20:48:52 +01:00
library WIP: add an 'updated' field to pages 2020-04-14 17:29:46 +05:30
link_checker Update syntect, using rust-onig with bindgen temporarily 2020-05-12 20:07:02 +02:00
rebuild Make path to config.toml independent from root dir (#1023) 2020-05-23 11:55:45 +02:00
rendering Wrap highlight code blocks with <code> (#1026) 2020-05-18 09:41:56 +02:00
search Use Rust 2018 edition (#885) 2020-02-02 17:48:43 -08:00
site Implement get_file_hash (#1044) 2020-06-09 22:38:29 +02:00
templates Implement get_file_hash (#1044) 2020-06-09 22:38:29 +02:00
utils Preserve timestamps when copying files (#974) (#983) 2020-04-04 11:05:24 +02:00