arcanis.me/_layouts/paper.html
arcan1s 11c229febf added loveless page ^^
added support of 'offtop' tag
2014-04-18 16:38:35 +04:00

56 lines
1.9 KiB
HTML

---
comment: true
share: true
back: 2
layout: default
---
<body>
<div class="wrapper">
<header>
<h1>{{ page.title }}</h1>
{% if page.category == "ru" %}
{% assign post = page %}
<p align="justify">{% include shortdate_to_ru.html %}</p>
<p align="justify"><b>Тэги</b>: {{ page.tags }}</p>
{% if page.tags contains 'offtop' %}
<!-- do nothing -->
{% else %}
<p align="justify"><b>Похожие посты</b>:<br>
{% for post in site.related_posts limit:5 %}
{% if post.tags contains 'offtop' %}
<!-- do nothing -->
{% else %}
{% if post.category == "ru" %}
<i>{% include shortdate_to_ru.html %}</i> <a href="{{ post.url }}">{{ post.title }}</a><br>
{% endif %}
{% endif %}
{% endfor %}
</p>
{% endif %}
{% else %}
<p align="justify">{{ page.date | date_to_string }}<br></p>
<p align="justify"><b>Tags</b>: {{ page.tags }}</p>
{% if page.tags contains 'offtop' %}
<!-- do nothing -->
{% else %}
<p align="justify"><b>Related posts</b>:<br>
{% for post in site.related_posts limit:5 %}
{% if post.tags contains 'offtop' %}
<!-- do nothing -->
{% else %}
{% if post.category != "ru" %}
<i>{{ post.date | date_to_string }}</i> <a href="{{ post.url }}">{{ post.title }}</a><br>
{% endif %}
{% endif %}
{% endfor %}
</p>
{% endif %}
{% endif %}
</header>
<section>
<a name="" class="anchor" href="#"><span class="octicon octicon-link"></span></a>
<p align="justify">{{ page.description }}</p>
{{ content }}