crazy-toads.github.io/_layouts/post.html

63 lines
3.6 KiB
HTML
Raw Normal View History

2017-08-08 19:53:28 +00:00
---
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.tags %}{% if forloop.first %}<i class="fa fa-tags" title="page tags"></i>{% endif %} <a href="{{ site.url }}/tags/#{{ tag | cgi_escape }}" title="Pages tagged {{ tag }}" rel="tag">{{ tag }}</a>{% unless forloop.last %} &bull; {% endunless %}{% endfor %}</span>
{% unless page.show_meta == false %}
{% include meta_info.html %}
{% endunless %}
{{ content }}
<hr>
{% if page.tags contains 'R' %}
{% include rblogger.html %}
{% endif %}
<span class="post-date metafoot" 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 metafoot" 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.tags %}{% if forloop.first %}<i class="fa fa-tags" title="page tags"></i>{% endif %} <a href="{{ site.url }}/tags/#{{ tag | cgi_escape }}" title="Pages tagged {{ tag }}" rel="tag">{{ tag }}</a>{% unless forloop.last %} &bull; {% endunless %}{% endfor %}</span>
{% unless page.show_meta == false %}
{% include meta_info.html %}
{% endunless %}
</div>
{% unless page.hide_printmsg == true %}
{% include printmsgposts.html %}
{% endunless %}
<div class="page-break"></div>
<div class="related">
<h2>Related Posts</h2>
<ul>
{% for post in site.posts %}
{% if post.url != page.url %}
{% for tag in page.tags %}
{% if post.tags contains tag %}
<li><a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a><br /></li>
{% break %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
</ul>
</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 %}