---
layout: default
---

<div id="tags">
	<article>
		<div class="tag-list">
			{% assign sorted_tags = (site.tags | sort:0) %}
		    {% for tag in sorted_tags %}
		    	<span class="tag">
		    		<a href="#{{ tag[0] }}-ref">{{tag[0]}}</a>
		    	</span> 
		    {% endfor %}
		</div>
	</article>

	<div>
		{% for tag in sorted_tags %}
		<h2 id="{{tag[0]}}-ref">{{tag[0]}} ({{tag[1]|size}})</h2>
		<ul class="article-list">
			{% assign pages_list = tag[1] | sort:'date' %}
			
	{% for node in pages_list %}
	{% if node.title != null %}
	  {% if group == null or group == node.group %}
	    <li>
	    	{{node.date | date:"%d/%m/%Y"}} - 
	    	<a href="{{ site.baseurl }}{{node.url}}">
	    		{{node.title}}
	    	</a>
	    </li>
	  {% endif %}
	{% endif %}
	{% endfor %}
	{% assign pages_list = nil %}
	{% assign group = nil %}

		</ul>
		{% endfor %}
	</div>
</div>

---
layout: default
---

<div id="tags">
	<article>
		<div class="tag-list">
			{% assign sorted_tags = (site.tags | sort:0) %}
		    {% for tag in sorted_tags %}
		    	<span class="tag">
		    		<a href="#{{ tag[0] }}-ref">{{tag[0]}}</a>
		    	</span> 
		    {% endfor %}
		</div>
	</article>

	<div>
		{% for tag in sorted_tags %}
		<h2 id="{{tag[0]}}-ref">{{tag[0]}} ({{tag[1]|size}})</h2>
		<ul class="article-list">
			{% assign pages_list = tag[1] | sort: '-date' %}
			
	{% for node in pages_list %}
	{% if node.title != null %}
	  {% if group == null or group == node.group %}
	    <li>
	    	{{node.date | date:"%d/%m/%Y"}} - 
	    	<a href="{{ site.baseurl }}{{node.url}}">
	    		{{node.title}}
	    	</a>
	    </li>
	  {% endif %}
	{% endif %}
	{% endfor %}
	{% assign pages_list = nil %}
	{% assign group = nil %}

		</ul>
		{% endfor %}
	</div>
</div>

Fix posts order in the same tag
Fix posts order in the same tag
