Created
March 17, 2016 02:39
-
-
Save 1forh/06bbf4b7c90465fc5ad5 to your computer and use it in GitHub Desktop.
Move active class on menu item with Panini helper #ifpage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<nav> | |
<ul> | |
<li {{#ifpage 'index'}}class="active"{{/ifpage}}><a href="index.html">Home</a></li> | |
<li {{#ifpage 'services'}}class="active"{{/ifpage}}><a href="services.html">Services</a></li> | |
<li {{#ifpage 'about-us'}}class="active"{{/ifpage}}><a href="about-us.html">About Us</a></li> | |
<li {{#ifpage 'contact-us'}}class="active"{{/ifpage}}><a href="contact-us.html">Contact Us</a></li> | |
</ul> | |
</nav> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment