Skip to content

Latest commit

 

History

History
executable file
·
35 lines (30 loc) · 1018 Bytes

posts_by_tag.md

File metadata and controls

executable file
·
35 lines (30 loc) · 1018 Bytes
layout title permalink
page
Posts by Tag
/tags/

This page displays the site's tags in alphabetical order and shows how many posts there are per tag, makes anchor links for each tag, then outputs posts by tag in reverse chronological order.

Posts by tag

{% assign sorted_tags = (site.tags | sort:0) %}

    {% for tag in sorted_tags %} {% assign t = tag | first %} {% assign posts = tag | last %}
  • {{ t }} ({{ posts.size }})
  • {% endfor %}

{% for tag in sorted_tags %} {% assign t = tag | first %} {% assign posts = tag | last %}

{{ t }}

    {% for post in posts %} {% if post.tags contains t %}
  • {{ post.date | date: '%d %b %y' }}: {{ post.title }}
  • {% endif %} {% endfor %}
{% endfor %}