🆕Breadcrumbs for Collections
This commit is contained in:
@@ -116,6 +116,9 @@ xaymar:
|
||||
enabled: true
|
||||
length: 100
|
||||
links:
|
||||
collection:
|
||||
permalink: '/:coll'
|
||||
slugify: 'default'
|
||||
category:
|
||||
permalink: '/category/:cat'
|
||||
slugify: 'default'
|
||||
|
||||
@@ -6,6 +6,16 @@
|
||||
</span>
|
||||
{% if include.permalink != "/" and include.permalink != "/index.html" %}
|
||||
»
|
||||
{% if page.collection %}
|
||||
{% assign entry=page.collection %}
|
||||
{% assign collection=entry | slugify: site.xaymar.links.collection.slugify %}
|
||||
<span class="crumb">
|
||||
<a href="{{ site.xaymar.links.collection.permalink | replace: ":coll", entry | absolute_url }}">
|
||||
{{ entry }}
|
||||
</a>
|
||||
</span>
|
||||
»
|
||||
{% endif %}
|
||||
{% assign cnt=page.categories | size %}
|
||||
{% if cnt > 0 %}
|
||||
{% for entry in page.categories %}
|
||||
@@ -15,8 +25,8 @@
|
||||
{{ entry }}
|
||||
</a>
|
||||
</span>
|
||||
{% endfor %}
|
||||
»
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
<span class="crumb">
|
||||
<a href="{{ include.permalink | absolute_url }}">
|
||||
|
||||
Reference in New Issue
Block a user