Skip to content

Instantly share code, notes, and snippets.

@timgauthier
Last active August 29, 2015 13:59
Show Gist options
  • Save timgauthier/10697477 to your computer and use it in GitHub Desktop.
Save timgauthier/10697477 to your computer and use it in GitHub Desktop.
<div class="navigation--wrapper">
<div class="navigation--button">
<div ><a href="<%= config[:baseurl] %>/"><i class="icon-logo button" ></i></a></div>
<div id="js-mobile-menu"><i class="icon-menu button"></i></div>
</div>
<ul class="navigation--menu" id="navigation-menu">
<li>
<%= link_to 'Projects', '/projects/index.html', :class => ("active" if current_page.data[:active].presence == 'projects') %>
<li>
<%= link_to 'Journal', (if current_page.data[:active].presence == 'journal' ? blog.articles.first.url : '/journal/index.html'), :class => ('active' if current_page.data[:active].presence == 'journal') %>
</li>
<li>
<%= link_to 'About', 'index.html', :class => ('active' if current_page.data[:active].presence == 'about') %>
</li>
<li>
<%= link_to 'Contact', 'contact.html', :class => ('active' if current_page.data[:active].presence == 'contact') %>
</li>
</ul>
</div>
<%= link_to 'Journal', (current_page.data[:active].present? == 'journal' ? blog.articles.first.url : '/journal/index.html'), :class => ('active' if current_page.data[:active].presence == 'journal') %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment