zola/components
southerntofu 84b75f9725
[feature] Shortcodes and anchor-link.html can access lang context (#1609)
* Pass lang to shortcodes context

* Add tests for lang in shortcodes

* Lang is passed to anchor-link.html template

* Document passing lang to shortcodes/anchor-link.html
Add a test to make sure lang can be overriden by passing an explicit argument to the shortcode,
for usage in the markdown filter where the language context is not available.

* Update docs for more information on shortcodes+i18n+markdown() filter

Co-authored-by: southerntofu <southerntofu@thunix.net>
2021-09-04 08:10:33 +02:00
..
config config.default_language is exposed to templates 2021-09-01 18:12:35 +02:00
errors Update deps 2021-08-12 08:54:55 +02:00
front_matter make clippy a bit happier (#1588) 2021-08-18 09:36:51 +02:00
imageproc make clippy a bit happier (#1588) 2021-08-18 09:36:51 +02:00
library Add draft to section variable in templates 2021-08-20 19:47:41 +02:00
link_checker cargo/manifests: allow user to use native-tls if ring is unsupported (#1587) 2021-08-18 15:32:34 +02:00
rendering [feature] Shortcodes and anchor-link.html can access lang context (#1609) 2021-09-04 08:10:33 +02:00
search make clippy a bit happier (#1588) 2021-08-18 09:36:51 +02:00
site Fix cachebust for files in the output path (#1586) 2021-08-19 07:55:40 +02:00
templates [feature] Shortcodes and anchor-link.html can access lang context (#1609) 2021-09-04 08:10:33 +02:00
utils make clippy a bit happier (#1588) 2021-08-18 09:36:51 +02:00