Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 1007 Bytes

categories.md

File metadata and controls

29 lines (24 loc) · 1007 Bytes
layout permalink title
page
/categories/
Categories
You can view posts by date, category or tag.
{% assign categories_sorted = site.categories | sort %} {% for category in categories_sorted %}
{% capture category_name %}{{ category | first }}{% endcapture %}
<div id="#{{ category_name | slugize }}"></div>

<h2 class="category-head">
<small>{{ category[0] | replace:'-', ' ' }} <small><sup><strong>{{ category | last | size }}</strong></sup></small></small></h2>
<a name="{{ category_name | slugize }}"></a>

{% for post in site.categories[category_name] %}
<article class="archive-item">
  <a href="{{ post.url }}">{{ post.title }}</a>&nbsp;&nbsp;
  <small><small><time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%-d %b %Y" }}</time></small></small>
</article>
{% endfor %}
{% endfor %}