Skip to content

Instantly share code, notes, and snippets.

@amirkhan81
Created April 23, 2015 17:46
Show Gist options
  • Save amirkhan81/7d802c65abb07de9b18e to your computer and use it in GitHub Desktop.
Save amirkhan81/7d802c65abb07de9b18e to your computer and use it in GitHub Desktop.
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{
var blogCategories = CurrentPage.AncestorOrSelf(1).blogCategories.Split(',');
}
@{
<nav id="mainNav">
<div class="wrapper">
<a id="main-menu-button">Menu</a>
<ul id="main-menu" class="sm sm-simple collapsed">
@foreach (var node in blogCategories) {
<li><a href="@node">@node</a></li>
}
</ul>
</div>
</nav>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment