-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathbreadcrumbs.html
More file actions
39 lines (39 loc) · 1.1 KB
/
breadcrumbs.html
File metadata and controls
39 lines (39 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{% unless page.hide_breadcrumbs == true %}
<ol>
<li>
{% if page.layout == "license" %}
<a href="/">{{ site.data.locale[site.locale].breadcrumb.home }}</a> / <a href="/licenses/">{{ site.data.locale[site.locale].breadcrumb.licenses }}</a>
{% else %}
<a href="/">{{ site.data.locale[site.locale].breadcrumb.home }}</a>
{% endif %}
</li>
</ol>
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [{
"@type": "ListItem",
"position": 1,
"item": {
"@id": "{{ site.github.url }}/",
"name": "Home"
}
},{% if page.layout == "license" %}{
"@type": "ListItem",
"position": 2,
"item": {
"@id": "{{ site.github.url }}/licenses",
"name": "Licenses"
}
},{% endif %}{
"@type": "ListItem",
"position": {% if page.layout == "license" %}3{% else %}2{% endif %},
"item": {
"@id": "{{ site.github.url }}{{ page.url }}",
"name": {{ page.title | jsonify }}
}
}]
}
</script>
{% endunless %}