zola/test_site/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
..
categories Custom taxonomies (#330) 2018-07-16 10:54:05 +02:00
shortcodes Make themes more flexible (#1004) 2020-06-18 22:31:03 +02:00
tags Make current_path always start with a slash (#1101) 2020-07-29 20:44:09 +02:00
index.html Tweak a bit the test_site test 2020-06-18 22:33:23 +02:00
index_paginated.html Make current_path always start with a slash (#1101) 2020-07-29 20:44:09 +02:00
page.html Let toc is visable through Page & Section variables in templates (#818) 2020-02-02 17:44:38 -08:00
page_template.html Add page_template to sections 2018-11-07 19:42:23 +01:00
page_template_child.html Add test for nested page_template 2018-11-07 20:48:39 +01:00
page_template_override.html Add page_template to sections 2018-11-07 19:42:23 +01:00
rebuild.html Move test_site and turn rebuild.rs into a component 2018-01-29 18:40:12 +01:00
robots.txt Rename all occurrences of gutenberg to zola in code 2018-10-18 22:50:06 +02:00
section.html Make themes more flexible (#1004) 2020-06-18 22:31:03 +02:00
section_paginated.html Remove paginator.pagers 2018-09-30 23:49:32 +02:00