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:
@ -10,7 +10,7 @@ author_profile: false
|
||||
|
||||
{% for category in group_names %}
|
||||
{% assign posts = group_items[forloop.index0] %}
|
||||
<h2 class="archive__subtitle">{{ category }}</h2>
|
||||
<h2 id="{{ category | slugify }}" class="archive__subtitle">{{ category }}</h2>
|
||||
{% for post in posts %}
|
||||
{% include archive-list-single.html %}
|
||||
{% endfor %}
|
||||
|
@ -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 %}
|
||||
|
@ -9,7 +9,7 @@ permalink: /portfolio/
|
||||
|
||||
{% for category in group_names %}
|
||||
{% assign posts = group_items[forloop.index0] %}
|
||||
<h2 class="archive__subtitle">{{ category }}</h2>
|
||||
<h2 id="{{ category | slugify }}" class="archive__subtitle">{{ category }}</h2>
|
||||
{% for post in posts %}
|
||||
{% include archive-list-single.html %}
|
||||
{% endfor %}
|
||||
|
@ -10,7 +10,7 @@ author_profile: false
|
||||
|
||||
{% for category in group_names %}
|
||||
{% assign posts = group_items[forloop.index0] %}
|
||||
<h2 class="archive__subtitle">{{ category }}</h2>
|
||||
<h2 id="{{ category | slugify }}" class="archive__subtitle">{{ category }}</h2>
|
||||
{% for post in posts %}
|
||||
{% include archive-list-single.html %}
|
||||
{% endfor %}
|
||||
|
@ -10,7 +10,7 @@ author_profile: false
|
||||
|
||||
{% for tag in group_names %}
|
||||
{% assign posts = group_items[forloop.index0] %}
|
||||
<h2 class="archive__subtitle">{{ tag }}</h2>
|
||||
<h2 id="{{ tag | slugify }}" class="archive__subtitle">{{ tag }}</h2>
|
||||
{% for post in posts %}
|
||||
{% include archive-list-single.html %}
|
||||
{% endfor %}
|
||||
|
@ -10,7 +10,7 @@ author_profile: false
|
||||
{% for post in site.posts %}
|
||||
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
|
||||
{% if year != written_year %}
|
||||
<h2 class="archive__subtitle">{{ year }}</h2>
|
||||
<h2 id="{{ year | slugify }}" class="archive__subtitle">{{ year }}</h2>
|
||||
{% capture written_year %}{{ year }}{% endcapture %}
|
||||
{% endif %}
|
||||
{% include archive-list-single.html %}
|
||||
|
Reference in New Issue
Block a user