treehouse/template/components/_header.hbs

17 lines
511 B
Handlebars

<section class="page-header">
<ol class="breadcrumbs">
{{#if (or (ne page.tree_path 'index') page.is_history)}}
<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>