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"> <section class="page-header">
{{#if page.breadcrumbs}}
<ol class="breadcrumbs"> <ol class="breadcrumbs">
{{#if (ne page.tree_path 'index')}}
<li class="root-breadcrumb"> <li class="root-breadcrumb">
<a href="{{ config.site }}/"> <a href="{{ config.site }}/">
{{{ include_static 'svg/object/logo.svg' }}} {{{ include_static 'svg/object/logo.svg' }}}
</li> </li>
</a> </a>
{{/if}}
{{{ page.breadcrumbs }}} {{{ page.breadcrumbs }}}
</ol> </ol>
{{/if}}
{{#if (ne page.title page.tree_path)}} {{#if (ne page.title page.tree_path)}}
<h1 class="page-title"><a href="{{ config.site }}/{{ page.tree_path }}">{{ page.title }}</a></h1> <h1 class="page-title"><a href="{{ config.site }}/{{ page.tree_path }}">{{ page.title }}</a></h1>