Created
November 20, 2013 19:48
-
-
Save teammixture/7569803 to your computer and use it in GitHub Desktop.
Simple example - dynamically adding a class to navigation based on the url in http://mixture.io
This file contains hidden or 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
<ul> | |
<li><a href="/" {% if mixture.url == "index" %}class="selected"{% endif %}>Home</a></li> | |
<li><a href="/about" {% if mixture.url == "about" %}class="selected"{% endif %}>About</a></li> | |
<li><a href="/contact" {% if mixture.url == "contact" %}class="selected"{% endif %}>Contact</a></li> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment