2014-02-07 00:18:00 +00:00
|
|
|
---
|
|
|
|
layout: default
|
|
|
|
---
|
|
|
|
|
2016-01-04 12:09:07 +00:00
|
|
|
{% assign post = page %}
|
|
|
|
|
2014-02-07 00:18:00 +00:00
|
|
|
<article class="post">
|
2015-11-06 15:16:53 +00:00
|
|
|
<h1>{{page.title}}</h1>
|
2015-11-06 14:55:13 +00:00
|
|
|
|
2015-11-06 15:20:29 +00:00
|
|
|
<p class='info'>
|
2016-01-04 12:09:07 +00:00
|
|
|
{% if post.category %}
|
|
|
|
{% for site_category in site.data.categories %}
|
|
|
|
{% if site_category.slug == post.category %}
|
|
|
|
{% assign category = site_category %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% if category %}
|
2016-01-04 21:06:34 +00:00
|
|
|
{% capture category_content %} in <a href="/meta/category/{{ category.slug }}/">{{ category.name }}</a>{% endcapture %}
|
2016-01-04 12:09:07 +00:00
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
|
|
{% assign category_content = '' %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if post.tags.size > 0 %}
|
2016-01-04 20:04:16 +00:00
|
|
|
{% capture tags_content %} with tags: {% endcapture %}
|
2016-01-04 12:09:07 +00:00
|
|
|
{% 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 %}
|
2016-01-04 20:24:15 +00:00
|
|
|
{% capture tags_content_temp %}{{ tags_content }}<a href="/meta/tag/{{ tag.slug }}/">{{ tag.name }}</a>{% if forloop.last == false %}, {% endif %}{% endcapture %}
|
2016-01-04 12:09:07 +00:00
|
|
|
{% assign tags_content = tags_content_temp %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
{% assign tags_content = '' %}
|
|
|
|
{% endif %}
|
|
|
|
|
2016-01-04 20:04:16 +00:00
|
|
|
<span>{{page.date | date: "%B %d, %Y" }}</span>
|
|
|
|
/
|
|
|
|
<span>by {{page.author}}</span>
|
2016-01-04 20:16:43 +00:00
|
|
|
<br/>
|
2016-01-04 20:04:16 +00:00
|
|
|
<span>Posted {{ category_content }}{{ tags_content }}</span>
|
2015-11-06 13:42:21 +00:00
|
|
|
</p>
|
2014-02-07 00:18:00 +00:00
|
|
|
|
2015-11-06 15:16:53 +00:00
|
|
|
<hr/>
|
|
|
|
|
2014-02-07 00:18:00 +00:00
|
|
|
<div class="entry">
|
|
|
|
{{ content }}
|
|
|
|
</div>
|
|
|
|
|
2015-12-02 13:46:53 +00:00
|
|
|
{% include disqus.html %}
|
2015-03-01 20:24:26 +00:00
|
|
|
</article>
|