Skip to content

Instantly share code, notes, and snippets.

@donaldallen
Created August 13, 2012 17:25
Show Gist options
  • Save donaldallen/3342607 to your computer and use it in GitHub Desktop.
Save donaldallen/3342607 to your computer and use it in GitHub Desktop.
Lex
<nav id="primary">
{{ url:anchor
segments='/'
title='<span class="icon"></span><span class="text">Home</span><span class="arrow"></span>'
class='home {{ if { url:segments segment="1" } == "" }} active {{ endif }}' }}
{{ url:anchor
segments='newspaper'
title='<span class="icon"></span><span class="text">Newspaper</span><span class="arrow"></span>'
class='newspaper {{ if { url:segments segment="1" } == "newspaper" }} active {{ endif }}' }}
{{ url:anchor
segments='website'
title='<span class="icon"></span><span class="text">Website</span><span class="arrow"></span>'
class='website {{ if { url:segments segment="1" } == "website" }} active {{ endif }}' }}
{{ url:anchor
segments='smartphone'
title='<span class="icon"></span><span class="text">Smartphone</span><span class="arrow"></span>'
class='smartphone {{ if { url:segments segment="1" } == "smartphone" }} active {{ endif }}' }}
{{ url:anchor
segments='tablet'
title='<span class="icon"></span><span class="text">Tablet</span><span class="arrow"></span>'
class='tablet {{ if { url:segments segment="1" } == "tablet" }} active {{ endif }}' }}
{{ url:anchor
segments='ereader'
title='<span class="icon"></span><span class="text">eReader</span><span class="arrow"></span>'
class='ereader {{ if { url:segments segment="1" } == "ereader" }} active {{ endif }}' }}
{{ url:anchor
segments='social'
title='<span class="icon"></span><span class="text">Social</span><span class="arrow"></span>'
class='social {{ if { url:segments segment="1" } == "social" }} active {{ endif }}' }}
</nav>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment