zola/components
yanghuidong b9296f7985
Make current_path always start with a slash (#1101)
* Make {section, page}.path always start with a slash

Change tests accordingly

* Fix missing leading/trailing slash in current_path of Taxonomy ("tags") and TaxonomyItem ("some-tag")

* Make {Paginator, Pager}.path always start with a slash

Fix Paginator.path missing trailing slash in from_taxonomy()

Change tests accordingly

* Update documentation regarding current_path now always starting with a slash

* Fix asymptomatic inverted logic in filter() for {section, page}.assets

* Add to 3 integration tests several checks for current_path in different templates

* Add a check for current_path in a paginated index section, "/page/2/"

This requires adding two dummy pages in the content root.

* Fix false passing of test on paginator.last due to URL prefix matching

A string formatting such as {name: value} can help prevent this.
2020-07-29 20:44:09 +02:00
..
config Tables in config.extra can be merged with those in theme.extra (#1100) 2020-07-29 09:37:49 +02:00
errors Update syntect, using rust-onig with bindgen temporarily 2020-05-12 20:07:02 +02:00
front_matter clippy + fmt + fix toml dates in extra arrays 2020-06-18 21:12:46 +02:00
imageproc Update image to 0.23 2020-02-10 20:48:52 +01:00
library Make current_path always start with a slash (#1101) 2020-07-29 20:44:09 +02:00
link_checker Update deps 2020-07-22 18:59:21 +02:00
rebuild Extract some feed logic out of site/lib.rs 2020-07-25 10:30:55 +02:00
rendering Allow emitting newlines and whitespace in shortcodes and introduce markdown shortcodes (#1085) 2020-07-29 20:20:43 +02:00
search Make search index configurable 2020-06-29 20:02:27 +02:00
site Make current_path always start with a slash (#1101) 2020-07-29 20:44:09 +02:00
templates Update deps 2020-07-22 18:59:21 +02:00
utils Make themes more flexible (#1004) 2020-06-18 22:31:03 +02:00