zola/docs/content/documentation/templates
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
..
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 Simple clean up of documentation. (#849) 2020-02-02 17:48:42 -08:00
feeds.md Add lang, taxonomy and term to feed template 2020-04-14 17:29:51 +05:30
overview.md Make current_path always start with a slash (#1101) 2020-07-29 20:44:09 +02:00
pages-sections.md Clearer page sorting comment 2020-06-18 23:21:35 +02:00
pagination.md Simple clean up of documentation. (#849) 2020-02-02 17:48:42 -08:00
robots.md Simple clean up of documentation. (#849) 2020-02-02 17:48:42 -08:00
sitemap.md WIP: add an 'updated' field to pages 2020-04-14 17:29:46 +05:30
taxonomies.md Typos (#1010) 2020-04-26 20:35:59 +02:00