zola icon indicating copy to clipboard operation
zola copied to clipboard

Allow to load_data from yml in addition to yaml?

Open bast opened this issue 1 year ago • 1 comments

This is not a bug report but rather a change proposal which I could possibly code/send.

Zola allows to load_data from yaml files (in addition to other formats) and this is a really nice recent addition (thanks!): https://www.getzola.org/documentation/templates/overview/#load-data

But many YAML files end with *.yml and not *.yaml and Zola does not seem to recognize these as YAML files.

Would it make sense to load_data from files/URLs ending with either *.yaml or *.yml via the YAML parser? If yes, I could try to send a patch.

But maybe this already works and I just misunderstood the documentation and/or sources and/or my local testing of a page.

bast avatar Aug 09 '22 16:08 bast

That's a very simple patch, no issues doing a PR for it.

Keats avatar Aug 09 '22 16:08 Keats