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