<ul class="breadcrumb mt-4">
    <li><a href="/">Главная</a></li>
    {foreach $page|path AS $p}
        {if $p->url == $routes->last}
            <li>{$p->name}</li>
        {else}
            <li><a href="{$p->url}">{$p->name}</a></li>
        {/if}
    {/foreach}
</ul>
