diff --git a/_includes/archive-single.html b/_includes/archive-single.html index 6817480..4c01fe4 100644 --- a/_includes/archive-single.html +++ b/_includes/archive-single.html @@ -25,6 +25,8 @@

{% endif %}

{% include page__meta.html type=include.type %} - {% if post.excerpt %}

{{ post.excerpt | markdownify | strip_html | truncate: 160 }}

{% endif %} + {% if site.category_archive.type and post.categories[0] and site.tag_archive.type and post.tags[0] %} + {%- include post__taxonomy.html -%} + {% endif %} diff --git a/_includes/post__taxonomy.html b/_includes/post__taxonomy.html new file mode 100644 index 0000000..1684592 --- /dev/null +++ b/_includes/post__taxonomy.html @@ -0,0 +1,25 @@ + + + +{%- if site.category_archive.type and post.categories[0] -%} + {% case site.tag_archive.type %} + {% when "liquid" %} + {% assign path_type = "#" %} + {% when "jekyll-archives" %} + {% assign path_type = nil %} + {% endcase %} + + {%- if site.tag_archive.path -%} + {% capture post_tags %}{% for tag in post.tags %}{{ tag | downcase }}|{{ tag }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %} + {% assign tag_hashes = post_tags | split: ',' | sort %} + + + {% for hash in tag_hashes %} + {% assign keyValue = hash | split: '|' %} + {% capture tag_word %}{{ keyValue[1] | strip_newlines }}{% endcapture %} + {% unless forloop.last %} {% endunless %} + {% endfor %} + + + {%- endif -%} +{%- endif -%} \ No newline at end of file