Last active
January 22, 2016 16:11
-
-
Save sskylar/c8f6fef2ff6fd49e1169 to your computer and use it in GitHub Desktop.
Siteleaf v1 highlighted menu using tags and CSS
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
<html> | |
<body class="{{type}} {{slug}} {% for tag in taxonomy.tags %} {{tag.slug}} {% endfor %}> | |
<nav> | |
<a href="/blog" class="blog">Blog</a> | |
<a href="/blog/tags/apple" class="apple">Apple</a> | |
</nav> | |
</body> | |
</html> |
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
.page.blog nav .blog { | |
background: red; /* only should apply for *page* called "blog" */ | |
} | |
.post.apple nav .apple { | |
background: red; /* only should apply for *post* with tag "apple" */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment