layout: post
{% comment%} Here we generate all the tags. from: codinfox.github.io/dev/2015/03/06/use-tags-and-categories-in-your-jekyll-based-github-pages/ {% 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 %}
<div> <p>
{% for tag in tags %} <a href="#{{ tag | slugify }}" class=""> {{ tag }} </a> {% endfor %}
</p>
{% for tag in tags %} <h3 id=“{{ tag | slugify }}”>{{ tag }}</h2>
{% for post in site.posts %} {% if post.tags contains tag %} <ul class="actions"> <li> <a class="button special" href="{{ post.url | relative_url}}"> {{ post.title }} <small>{{ post.date | date_to_string }}</small> </a> {% for tag in post.tags %} <a class="button" href="{{ page.url | relative_url}}#{{ tag | slugify }}">{{ tag }}</a> {% endfor %} </li> </ul> {% endif %} {% endfor %}
{% endfor %}
</div>