layout | permalink | header | title | menu | order | lang | ||
---|---|---|---|---|---|---|---|---|
page |
/tags.html |
|
Tags |
footer |
2 |
en |
{% capture site_tags %}{% for tag in site.tags %}{{ tag | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
{% assign tag_words = site_tags | split:',' | sort %}
-
{% for item in (0..site.tags.size) %}{% unless forloop.last %}
{% capture this_word %}{{ tag_words[item] }}{% endcapture %}
<a href="#{{ this_word | cgi_escape }}" class="tag">{{ this_word }}
<span>({{ site.tags[this_word].size }})</span>
</a>
{% endunless %}{% endfor %}
{% for item in (0..site.tags.size) %}{% unless forloop.last %}
{% capture this_word %}{{ tag_words[item] }}{% endcapture %}
{% for post in site.tags[this_word] %}{% if post.title != null %}
{{ post.title }}
{{ post.date | date_to_string }}
{% endif %}{% endfor %}
{% endunless %}{% endfor %}