You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When processing the site index, the current_path variable should always be "/". Unless it should always be "".
Current Behavior
If content/_index.md exists, when the index.html template is processed the value of current_path will be "/". If content/_index.md does not exist, current_path is the empty string.
Step to reproduce
Create a site
Write an index.html template that exposes the value of current_path
Examine the HTML generated depending on whether content/_index.md exists
Notes
I would expect that current_path should be the same regardless. But maybe there is a good reason that it's not?
The text was updated successfully, but these errors were encountered:
Bug Report
Environment
Zola version: 0.10.1
Expected Behavior
When processing the site index, the
current_path
variable should always be "/". Unless it should always be "".Current Behavior
If
content/_index.md
exists, when theindex.html
template is processed the value ofcurrent_path
will be "/". Ifcontent/_index.md
does not exist,current_path
is the empty string.Step to reproduce
index.html
template that exposes the value ofcurrent_path
content/_index.md
existsNotes
I would expect that
current_path
should be the same regardless. But maybe there is a good reason that it's not?The text was updated successfully, but these errors were encountered: