#date #git-history #zola #page #case #how #front-matter

bin+lib zola_chrono

Tool to set dates for zola pages based on git history

6 releases

0.3.2 Apr 17, 2024
0.3.1 Feb 20, 2024
0.3.0 Jan 15, 2024
0.2.0 Nov 9, 2023
0.1.1 Nov 8, 2023

#169 in Date and time

Download history 8/week @ 2024-01-15 159/week @ 2024-02-19 20/week @ 2024-02-26 23/week @ 2024-04-01 137/week @ 2024-04-15

160 downloads per month

MIT/Apache

40KB
768 lines

zola_chrono

Designed to set dates on zola pages. It set's date and updated in zola front matter according to the rules listed here. Rules can also be found in the long help output of the executable --help.

Install

cargo install zola_chrono

Usage

After installing run the following to see the available options

zola_chrono --help

See here for a summary of the rules and a link to the test cases which best document how it works.

To see instructions on setting it up as a pre-push hook see my notes for how I did it for my use case. Used to be a pre-commit but that was more often that I cared for.

License

All code in this repository is dual-licensed under either:

  • Apache License, Version 2.0
  • MIT license

at your option. This means you can select the license you prefer! This dual-licensing approach is the de-facto standard in the Rust ecosystem and there are very good reasons to include both as noted in this issue on Bevy's repo.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~24–39MB
~657K SLoC