@inherits umbraco.MacroEngines.DynamicNodeContext

@* Check the current page has ancestors *@
@if (Model.Ancestors().Any())
{ 
    <ul>
        @* For each page in the ancestors collection which have been ordered by Level (so we start with the highest top node first) *@
        @foreach (var page in Model.Ancestors().OrderBy("Level"))
        {
            <li><a href="@page.Url">@page.Name</a> &raquo;</li>
        }

        @* Display the current page as the last item in the list *@
        <li>@Model.Name</li>
    </ul>
}