Statiq.Web icon indicating copy to clipboard operation
Statiq.Web copied to clipboard

With Keys.LinkHideIndexPages is true active parent is not set

Open mollwe opened this issue 5 years ago • 1 comments

With default settings you get on a sub page (/page/subpage) navigation like:

...
<li class="active"><a href="/page">Page</a></li>
...

with settings to hide index pages:

Settings[Keys.LinkHideIndexPages] = false;
Settings[Keys.LinkHideExtensions] = false;

you get on a sub page (/page/subpage.html) navigation like:

...
<li><a href="/page/index.html">Page</a></li>
...

Expected it to look like:

...
<li class="active"><a href="/page/index.html">Page</a></li>
...

mollwe avatar Nov 15 '18 13:11 mollwe

Bumping in case of Wyam resolution ❤️

aycippo avatar May 19 '23 23:05 aycippo