zola/components/templates
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
..
src Issue 2359 get section by lang (#2410) 2024-06-20 23:15:24 +02:00
Cargo.toml Downgrade mockito to not raise MSRV 2023-02-16 20:49:03 +01:00
gutenberg.jpg Revamp the images template functions 2021-06-10 10:26:12 +02:00