layout | title |
---|---|
page |
Find |
{% comment%} Here we generate all the tags. {% endcomment%}
{% assign rawtags = "" %}
{% for post in site.posts %} {% assign ttags = post.tags | join:'|' | append:'|' %} {% assign rawtags = rawtags | append:ttags %} {% endfor %}
{% assign rawtags = rawtags | split:'|' | sort %}
{% assign tags = "" %}
{% for tag in rawtags %} {% if tag != "" %} {% if tags == "" %} {% assign tags = tag | split:'|' %} {% endif %} {% unless tags contains tag %} {% assign tags = tags | join:'|' | append:'|' | append:tag | split:'|' %} {% endunless %} {% endif %} {% endfor %}
All tags are listed below, hope these helps ^.^
{% for tag in tags %}
{{ tag }}
{% endfor %}
{% for tag in tags %}
{{ tag }}
-
{% for post in site.posts %}
{% if post.tags contains tag %}
- {{ post.title }} {% endif %} {% endfor %}