2015-01-02 16:35:38 +00:00
|
|
|
---
|
|
|
|
layout: default
|
|
|
|
---
|
2015-02-15 17:42:43 +00:00
|
|
|
{% assign post = page %}
|
|
|
|
{% if post.tags.size > 0 %}
|
|
|
|
{% capture tags_content %}Post tags {% if post.tags.size == 1 %}<i class="fa fa-tag"></i>{% else %}<i class="fa fa-tags"></i>{% endif %}: {% endcapture %}
|
|
|
|
{% for post_tag in post.tags %}
|
|
|
|
{% for data_tag in site.data.tags %}
|
|
|
|
{% if data_tag.slug == post_tag %}
|
|
|
|
{% assign tag = data_tag %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% if tag %}
|
|
|
|
{% capture tags_content_temp %}{{ tags_content }}<a href="/blog/tags/{{ tag.slug }}">{{ tag.name }}</a>{% if forloop.last == false %}, {% endif %}{% endcapture %}
|
|
|
|
{% assign tags_content = tags_content_temp %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
{% assign tags_content = '' %}
|
|
|
|
{% endif %}
|
|
|
|
|
2015-01-02 16:35:38 +00:00
|
|
|
<article>
|
|
|
|
<header>
|
|
|
|
<h2>{{ page.title }}</h2>
|
2015-02-14 19:39:47 +00:00
|
|
|
<span><i class="icon-clock"></i><time datetime="{{ page.date | global.date }}">{{ page.date | global.date }}</time></span><br/>
|
2015-01-02 16:35:38 +00:00
|
|
|
<span class="category"><i class="icon-tag"></i> {{ page.categories | category_links }}</span><br/>
|
|
|
|
<span class="author"><i class="icon-user"></i> {% if page.author %}{{page.author}}{% else %}{{site.author}}{% endif%}</span>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<div class="entry">{{ content }}</div>
|
|
|
|
|
2015-02-15 17:42:43 +00:00
|
|
|
<footer><p id="post-meta">{{ tags_content }}</p></footer>
|
2015-01-02 16:35:38 +00:00
|
|
|
|
|
|
|
</article>
|