Skip to content

Instantly share code, notes, and snippets.

@tdominey
Created September 12, 2013 20:53
Show Gist options
  • Save tdominey/6543642 to your computer and use it in GitHub Desktop.
Save tdominey/6543642 to your computer and use it in GitHub Desktop.
Use {{ location.here }} variable to know which page you're viewing
<koken:if data="location.here" equals="/">
<!-- We're on the home page -->
</koken:if>
<koken:if data="location.here" equals="/albums/">
<!-- We're on the albums index -->
</koken:if>
<koken:if data="location.here" equals="/albums/portraits/">
<!-- We're on the portraits album page -->
</koken:if>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment