Posts are now sorted by date by default. Dates have to have the format
`%d %B %Y %H:%M:%S %z`, e.g. `29 May 2016 23:00:00 +0100` to be
successfully parsed. If no dates are provided or the parsing fails, it
falls back to 1970.
This is a backwards-incompatible change, as `@extends` is an invalid
identifier in yaml (specifically the @ part). I changed it to `extends`,
which doesn't seem bad.
This comes together with the changes for supporting datetime properties
and sorting posts by creation date. More implementation details will
follow in later commits.
- Uses liquid 0.2, which does better error handling
- Introduces a cobalt::Error that converts from the different error
types and enables much conciser and safer code
- Transitions all panics and unwraps to use the new error system
- Removes the old util copy_recursive_filter function in favor of a nice
iterator approach using walkdir.
- Replaces some instances of to_string with to_owned for performance.
- Some more try!
- deny warnings 😎
This commit:
- replaces the walk_dir util function with the walkdir crate to avoid
some inconveniences
- adds regression/integration tests that run over a set of fixtures and
compare them to a desired output
- moves the example/ folder into tests/fixtures to create an initial
testing fixture
- improves the travis configuration e.g. to test and collect code coverage