mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 12:50:24 +01:00
add json-ld breadcrumbs
This commit is contained in:
parent
c5e3673ced
commit
2caf7043fa
@ -8,4 +8,32 @@
|
||||
{% 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 }}"
|
||||
}
|
||||
}]
|
||||
}
|
||||
</script>
|
||||
{% endunless %}
|
Loading…
x
Reference in New Issue
Block a user