Skip to content
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

"selected" class on navigation #2

Open
wldhg opened this issue Feb 5, 2018 · 2 comments
Open

"selected" class on navigation #2

wldhg opened this issue Feb 5, 2018 · 2 comments

Comments

@wldhg
Copy link

wldhg commented Feb 5, 2018

I wanted to display color bar under now-menu.
But if now-page is not main page, color bar did not displayed.

So I resolved this problem with code below.

(Changing layout/partial/nav.jade)
(From)
- var act = !re.test(value) && "/"+page.current_url === value
(To)
- var act = !re.test(value) && ("/"+String(page.path).substring(0,String(page.path).indexOf("/")) == value)

Is this problem is intended?

@AngryPowman
Copy link
Owner

No, it's really a known bug I don't have time to solve. Please feel free to submit a pull request. :)

@wldhg
Copy link
Author

wldhg commented Apr 8, 2018

I'll add many functions and fix several bugs until July,
After complete whole task, I'll make a pull request XD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants