blog_by_tag.html 831 Bytes
Newer Older
Riccardo Spagni's avatar
Riccardo Spagni committed
1 2 3 4 5 6 7 8 9 10 11 12
---
layout: default
---

{% assign filename = page.path | remove: '.md' | split: '/' | last %}

{% for data_tag in site.data.tags %}
	{% if data_tag.slug == filename %}
		{% assign tag = data_tag %}
	{% endif %}
{% endfor %}

13 14 15 16 17
<div class="page-title">
  <!-- Icon is based on work by Sergiu Bagrin (http://pixelkit.com) and is licensed under Creative Commons BY 3.0 -->
  <img src="//static.monero.cc/images/icon_tags.svg" class="title-icon"><h2 class="inline">{% t tags.all %}: <span class="kicks">{{ tag.name }}</span></h2>
</div>

Riccardo Spagni's avatar
Riccardo Spagni committed
18 19 20 21 22 23 24 25 26
<div>
    {% if site.tags[tag.slug] %}
        {% for post in site.tags[tag.slug] %}
		  <h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
		  <blockquote>
			{{ post.summary }}
		  </blockquote>
        {% endfor %}
    {% else %}
27
        <h3>{% t tags.notags %}</h3>
Riccardo Spagni's avatar
Riccardo Spagni committed
28 29 30
    {% endif %}
</div>