zola/components
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
..
config Allow ignoring files when link checking (#2264) 2024-06-20 23:15:24 +02:00
console add link_checker settings for external_level and internal_level (#1848) 2022-05-11 21:54:34 +02:00
content fix: taxonomies missing lang in sitemap (#2373) 2023-12-18 23:24:06 +01:00
errors Remove unused deps thanks to cargo-machete 2022-04-27 19:49:57 +02:00
imageproc Refactor: create_directory responsibly (#2407) 2024-06-20 23:15:24 +02:00
libs elasticlunr-rs 3.0.2, hu language support (#2151) 2023-12-18 23:24:06 +01:00
link_checker Speedup "zola check" command by reusing the Client (#2171) 2023-12-18 23:24:06 +01:00
markdown Match <!--more--> in addition to <!-- more --> (#2397) 2024-06-20 23:15:24 +02:00
search Add option to include date in search index (#2401) 2024-06-20 23:15:24 +02:00
site Issue 2359 get section by lang (#2410) 2024-06-20 23:15:24 +02:00
templates Issue 2359 get section by lang (#2410) 2024-06-20 23:15:24 +02:00
utils Allow ignoring files when link checking (#2264) 2024-06-20 23:15:24 +02:00