zola/docs/content/documentation/templates
Ken "Elf" Mathieu Sternberg 77eb9fef9b
Create pull request/add yaml to load data (#1842)
* Add YAML to formats supported by load_data()

A fairly trivial addition; JSON and YAML are handled so similarly
that this was a matter of copying the JSON-relevant handlers and
editing the copies to handle YAML as well.  The test file was
literally generated with 'json2yaml'.

The documentation has been updated to indicate that load_data() now
handles YAML code.

The CHANGELOG has been updated as well.

* After checking, I found that it's generally agreed the mime type is still application/x-yaml.

* Update comment, unify library importing.

I noticed one more place where the list of formats was supported,
and added YAML to that list.

I noticed that there's a singular place to load the `libs::` crate,
and unified by importing of serde_yaml in that place.
2022-04-29 20:22:02 +02:00
..
feeds Fix RSS block example in documentation (#1210) 2020-10-21 13:00:16 +02:00
404.md Simple clean up of documentation. (#849) 2020-02-02 17:48:42 -08:00
_index.md Redirect on templates and themes sections 2017-10-19 17:06:31 +02:00
archive.md Simple clean up of documentation. (#849) 2020-02-02 17:48:42 -08:00
overview.md Create pull request/add yaml to load data (#1842) 2022-04-29 20:22:02 +02:00
pages-sections.md Fix page.updated's document. #1641 (#1644) 2021-10-21 11:54:14 +02:00
pagination.md Mention paginator.current_index is 1-indexed 2021-07-19 20:56:23 +02:00
robots.md Fix site 2020-12-14 20:58:59 +01:00
sitemap.md WIP: add an 'updated' field to pages 2020-04-14 17:29:46 +05:30
taxonomies.md Allow taxonomies to not be rendered 2022-04-27 21:11:42 +02:00