-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
current-menu-item style not applied when the url is set to an html file #8
Comments
Which layout these |
They're the same as the incuded sample files. The General Articles one is just an altered jekyll.md. |
Edit So for ex- If your general articles.html has the this front matter: ===
layout: article
=== and you have a menu article in config, you can mention and each post has the layout type post which matches the one with menu If your HTML doesn't have front matter, it won't work. I will fix this in upcoming releases. |
Oh, OK. It does work that way, but then you have the problem that being inside a post always highlights "Home". So in my case, if I want to have a link to a listing of a particular category, the menu entry stays highlighted even if I go to a listing of another category. Hm. |
In my current setup, I have a menu like this:
(This is because the server I'm using at the moment only displays pages that really exist, so just a link to /about/ or / would give a 404.)
This works fine, but the style of the menu button does not get the current-menu-item style applied to it when I visit the menu item.
The text was updated successfully, but these errors were encountered: