好记性不如烂笔头。

Breadcrumb 面包屑导航

@inherits Umbraco.Web.Macros.PartialViewMacroPage
@{ var selection = CurrentPage.Ancestors(); }
@if (selection.Any())
{
    <ul class="breadcrumb">
        @foreach (var item in selection.OrderBy("Level"))
        {
            <li><a href="@item.Url">@item.Name</a> <span class="divider">/</span></li>
        }
        <li class="active">@CurrentPage.Name</li>
    </ul>
}