crappy-reverie/_layouts/post.html

42 lines
1.3 KiB
HTML

---
layout: default
---
<article class="post detailed">
<h1>{{ page.title }}</h1>
<div>
<p class="author_title">{% if site.author %} {{site.author}} · {% endif %}{{ page.date | date: "%B %e, %Y" }}</p>
{% if page.last_modified_at %}
<p class="author_title" datetime="{{ page.last_modified_at | date_to_xmlschema }}">(Updated: {{ page.last_modified_at | date: "%b %-d, %Y" }})</p>
{% endif %}
<div class="post-tags">
{% if post %}
{% assign categories = post.categories %}
{% else %}
{% assign categories = page.categories %}
{% endif %}
{% for category in categories %}
<a href="{{site.baseurl}}/categories/#{{category|slugize}}">{{category}}</a>
{% unless forloop.last %}&nbsp;{% endunless %}
{% endfor %}
</div>
</div>
<div class="entry">
{{ content }}
</div>
{% if site.social_share == true %}
<div>
<p><span class="share-box">Share:</span> <a href="http://twitter.com/share?text={{ page.title }}&url={{site.url}}{{page.url}}" target="_blank">Twitter</a>, <a href="https://www.facebook.com/sharer.php?u={{site.url}}{{page.url}}" target="_blank">Facebook</a></p>
</div>
{% endif %}
<!--<div class="date">
Written on {{ page.date | date: "%B %e, %Y" }}
</div>-->
{% include disqus.html %}
</article>