-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patharticleheader.html
More file actions
16 lines (16 loc) · 953 Bytes
/
articleheader.html
File metadata and controls
16 lines (16 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<section class="articleheader">
<div class="row">
<h1 class="left-heading col-xs-12 col-md-6">{{ page.title }}</h1>
<ol class="articleheader__breadcrumb breadcrumb col-xs-12 col-md-6">
{% assign crumbs = page.url | remove:'/index.html' | split: '/' %}
<li class="breadcrumb-item"><a href="{{ site.baseurl }}/">Home </a> </li>
{% for crumb in crumbs offset: 1 %}
{% if forloop.last %}
/ {{ page.title }}
{% else %}
/ <a href="{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' }}{% endfor %}">{{ crumb | replace:'-',' ' | remove:'.html' | capitalize }}</a>
{% endif %}
{% endfor %}
</ol>
</div>
</section>