zola/components/site
SumDonkuS 80bcc51fd2 Issue 2359 get section by lang (#2410)
* adding optional `lang` arugment to `get_section` global function

* Add handling of default language passed in `lang` argument of `get_section`

* Remove clones for path.  Change "?" to an explicit check for error

* lint changes

* Clean up error handling for add_lang_to_path call

* fix format

* Add optional parameter "lang" to get_page template function.  Add check for language available in config.

* Modify helper function name from calculate_path to get_path_with_lang.  Modify documentation for get_section and get_page to include equivalent calls without using lang argument to demostrate how lang argument effects pathing.
2024-06-20 23:15:24 +02:00
..
benches Re-organise content and remove slotmap indirection level (#1827) 2022-04-26 20:51:04 +02:00
src Issue 2359 get section by lang (#2410) 2024-06-20 23:15:24 +02:00
tests fix: taxonomies missing lang in sitemap (#2373) 2023-12-18 23:24:06 +01:00
Cargo.toml Update deps 2022-07-10 16:31:09 +02:00