crazy-toads.github.io/_layouts/post.html
2017-08-29 03:25:46 +08:00

58 lines
2.1 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
layout: default
---
<div class="post">
<h1 itemprop="name" class="post-title">{{ page.title }}</h1>
<span class="post-date" itemprop="datePublished" content="{{ page.date | date: "%Y-%m-%d" }}">
<i class="fa fa-calendar" title="Date published">
<a class="permalink" href="{{ site.url }}{{ page.url }}" itemprop="url" title="Permanent link to this post">{{ page.date | date_to_string }}</a> </i>
</span>
{% if page.modified.size > 2 %}
{% assign moddate = page.modified | date_to_string %}
{% assign pgdate = page.date | date_to_string %}
{% unless moddate == pgdate | date_to_string %}
<span class="post-date" itemprop="dateModified" content="{{ page.modified | date: "%Y-%m-%d" }}"><i class="fa fa-edit" title="Last updated"> {{ page.modified | date_to_string }}</i></span>
{% endunless %}
{% endif %}
<span class="post-tags" itemprop="keywords" content="{{ page.tags | array_to_sentence_string }}">
{% for tag in page.categories %}
{% if forloop.first %}
<i class="fa fa-tags" title="page tags"></i>
{% endif %}
{{ tag }}
{% unless forloop.last %} &bull; {% endunless %}
{% endfor %}</span>
{% unless page.show_meta == false %}
{% include meta_info.html %}
{% endunless %}
{% if page.authors %}
<div class="authors">Par {{ page.authors }}</div>
{% endif %}
{{ content }}
</div>
{% unless page.hide_printmsg == true %}
{% include printmsgposts.html %}
{% endunless %}
<div class="page-break"></div>
<div class="prevnext">
{% if page.previous.url %}
<a class="prevnext-item older" href="{{ site.url }}{{page.previous.url}}" title="{{ page.previous.title }}">Older</a>
{% else %}
<span class="prevnext-item older">Older</span>
{% endif %}
{% if page.next.url %}
<a class="prevnext-item older" href="{{ site.url }}{{page.next.url}}" title="{{ page.next.title }}">Newer</a>
{% else %}
<span class="prevnext-item older">Newer</span>
{% endif %}
</div>
<div class="page-break"></div>
{% if site.disqus_shortname and page.comments == true %}<div id="disqus_thread"></div><!-- /#disqus_thread -->{% endif %}