top menu color is incorrect with recent Zola #39
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Problem is reproducible with zola 0.12.0
Top elements "Experiment control"... are light blue instead of the dark color used in the current version on https://m-labs.hk
This line is supposed to make the dropdown item active conditionally.
49488577f8/templates/_base.html (L79)
I think the intended behavior is to show the corresponding top element in lighter color when the page is opened. For example:
And so on...
The line of code implements this logic by checking the first segment of the paths. But the behavior of
current_path
and other kinds of path in zola 0.12.0 was changed by this PR (corresponding issue).After that PR, all path starts with a slash (/), the first element is always an empty string. The top elements are always active.