zola/docs/content/documentation/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
..
feeds template:feeds: add extra block (#2263) 2023-12-18 23:24:06 +01: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 Fix erroring suggestion in docs (#2087) 2023-02-08 22:31:18 +01:00
overview.md Issue 2359 get section by lang (#2410) 2024-06-20 23:15:24 +02:00
pages-sections.md Add mention of authors page variable to docs (#2451) 2024-03-06 20:09:22 +01:00
pagination.md Mention paginator.current_index is 1-indexed 2021-07-19 20:56:23 +02:00
robots.md Make robots.txt compliant with RFC (#1895) 2022-06-12 21:41:38 +02:00
sitemap.md WIP: add an 'updated' field to pages 2020-04-14 17:29:46 +05:30
taxonomies.md Get term fn (#1964) 2023-02-16 20:49:03 +01:00