mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 12:50:24 +01:00
move breadcrumbs to include
This commit is contained in:
parent
12f4407bdc
commit
25569a5ec1
11
_includes/breadcrumbs.html
Normal file
11
_includes/breadcrumbs.html
Normal file
@ -0,0 +1,11 @@
|
||||
{% unless page.hide_breadcrumbs == true %}
|
||||
<ol class='breadcrumbs'>
|
||||
<li>
|
||||
{% if page.layout == "license" %}
|
||||
<a href="/">Home</a> / <a href="/licenses/">Licenses</a>
|
||||
{% else %}
|
||||
<a href="/">Home</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
</ol>
|
||||
{% endunless %}
|
@ -27,17 +27,7 @@
|
||||
<body class="{{ page.layout }} {{ page.class }}">
|
||||
<div class='container'>
|
||||
|
||||
{% unless page.hide_breadcrumbs == true %}
|
||||
<ol class='breadcrumbs'>
|
||||
<li>
|
||||
{% if page.layout == "license" %}
|
||||
<a href="/">Home</a> / <a href="/licenses/">Licenses</a>
|
||||
{% else %}
|
||||
<a href="/">Home</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
</ol>
|
||||
{% endunless %}
|
||||
{% include breadcrumbs.html %}
|
||||
|
||||
{% if page.title %}
|
||||
<h1>{{ page.title }}</h1>
|
||||
|
Loading…
x
Reference in New Issue
Block a user