Add page taxonomy links for tags and categories

- Customizable text via _data file
- Enable/disable links by setting archive page filenames in _config.yml
This commit is contained in:
Michael Rose
2016-03-10 21:53:28 -05:00
parent f63b8fe294
commit 4427cf4c8e
10 changed files with 56 additions and 29 deletions

View File

@ -12,7 +12,7 @@ author_profile: false
{% unless collection.output == false or collection.label == 'posts' %}
{% capture label %}{{ collection.label }}{% endcapture %}
{% if label != written_label %}
<h2 class="archive__subtitle">{{ label }}</h2>
<h2 id="{{ label | slugify }}" class="archive__subtitle">{{ label }}</h2>
{% capture written_label %}{{ label }}{% endcapture %}
{% endif %}
{% endunless %}