always display the root breadcrumb

it's important for navigation
This commit is contained in:
liquidex 2024-10-30 23:19:41 +01:00
parent 37e2d6e675
commit b75d215e53

View file

@ -1,14 +1,14 @@
<section class="page-header">
{{#if page.breadcrumbs}}
<ol class="breadcrumbs">
{{#if (ne page.tree_path 'index')}}
<li class="root-breadcrumb">
<a href="{{ config.site }}/">
{{{ include_static 'svg/object/logo.svg' }}}
</li>
</a>
{{/if}}
{{{ page.breadcrumbs }}}
</ol>
{{/if}}
{{#if (ne page.title page.tree_path)}}
<h1 class="page-title"><a href="{{ config.site }}/{{ page.tree_path }}">{{ page.title }}</a></h1>