zola
zola copied to clipboard
Add support for yaml datetimes
IMPORTANT: Please do not create a Pull Request adding a new feature without discussing it first.
The place to discuss new features is the forum: https://zola.discourse.group/ If you want to add a new feature, please open a thread there first in the feature requests section.
Sanity check:
- [x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
Code changes
(Delete or ignore this section for documentation changes)
- [x] Are you doing the PR on the
next
branch?
If the change is a new feature or adding to/changing an existing one:
- [ ] Have you created/updated the relevant documentation page(s)?
Issue #2071 Please note that I wasn't fully sure how to incorporate my code with from_toml_datetime deserializer. It looks like the time crate has some sort of way to output rfc3339 strings, and I'll try and wire that up if this PR is deemed acceptable.
I probably should write more tests if we want to keep this too.
I really ought to use verbose mode on the regex string, so I can add back in newlines and comments