Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 931 Bytes

archivebycategory.md

File metadata and controls

23 lines (19 loc) · 931 Bytes
title permalink active sitemap layout
Post by Category
/categoryview/
archivebycategory
false
page

{% assign tags = site.categories | sort %} {% assign sorted_posts = site.posts | sort: 'title' %}

{% for tag in tags %} {{ tag | first | replace: '-', ' ' }}({{ tag | last | size }}){% if forloop.last == false %} • {% endif %}{% endfor %}

 

{% for tag in tags %}

 

{{ tag | first | replace:'-', ' ' }} {{ tag | last | size }}

    {% for post in sorted_posts %}{%if post.categories contains tag[0]%}
  • {{ post.title }} {% if post.author %} • {{ post.author }}{% endif %}{% if post.date %} • {{ post.date | date: "%B %e, %Y" }}{% endif %}
  • {%endif%}{% endfor %}
{% endfor %}