This website requires JavaScript.
Explore
Help
Sign In
emelie
/
zola
Watch
1
Star
0
Fork
You've already forked zola
0
Code
Issues
Pull requests
Releases
Wiki
Activity
41e436f331
zola
/
test_site
/
themes
/
sample
/
templates
/
current_path.html
1 line
52 B
HTML
Raw
Normal View
History
Unescape
Escape
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 18:44:09 +00:00
<
div
>
[current_path]({{ current_path | safe }})
<
/
div
>
Reference in a new issue
Copy permalink