treehouse/template/components/_header.hbs
liquidex b75d215e53 always display the root breadcrumb
it's important for navigation
2024-10-30 23:20:47 +01:00

17 lines
490 B
Handlebars

<section class="page-header">
<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 (ne page.title page.tree_path)}}
<h1 class="page-title"><a href="{{ config.site }}/{{ page.tree_path }}">{{ page.title }}</a></h1>
{{/if}}
</section>