Created
April 23, 2015 17:46
-
-
Save amirkhan81/7d802c65abb07de9b18e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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