Skip to content

Instantly share code, notes, and snippets.

@woeldiche
Created April 25, 2014 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woeldiche/11286892 to your computer and use it in GitHub Desktop.
Save woeldiche/11286892 to your computer and use it in GitHub Desktop.
<div data-desk-after="logo" data-mobile-append="main-menu" data-responsive>
<h2 class="aria--visible">Main menu</h2>
<ul class="menu--main mobile-one-whole tablet-one-half">
{{#each links}}
{{#if this.active}}
<li class="item--open active-trail" data-menu="tree">
<a id="main-menu--active" href="#" class="active-trail">{{this.label}}</a>
{{> menu-subnav this.menu-second}}
</li>
{{else}}
<li class="item--closed" {{#if this.subnav}}data-append="{{this.subnav}}" data-media="{{> media-until-tablet}}"{{/if}} data-menu="tree"><a href="#">{{this.label}}</a></li>
{{/if}}
{{/each}}
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment