blog/_layouts/post.html

62 lines
1.4 KiB
HTML
Raw Normal View History

2019-08-03 11:14:05 +02:00
---
2019-09-11 06:19:34 +02:00
layout: framework
2020-07-12 10:23:23 +02:00
banner:
2019-09-11 06:19:34 +02:00
banner_html: post-header.html
sidebar:
- article-menu
2019-08-03 11:14:05 +02:00
---
2019-09-11 06:19:34 +02:00
<div class="post">
<section>
2019-09-11 06:19:34 +02:00
{%- assign name = 'banner' -%}
{%- include functions.html func='get_value' -%}
{%- assign banner = return -%}
2019-09-11 06:19:34 +02:00
{%- if banner == nil -%}
{%- include views/post-header.html -%}
{%- endif -%}
2019-09-11 06:19:34 +02:00
{%- include views/article.html -%}
2019-09-11 06:19:34 +02:00
<div class="post-nav">
{%- if page.previous -%}
2020-07-12 10:23:23 +02:00
<a class="previous" href="{{ page.previous.url }}" title="{{ page.previous.title | escape }}">{{ page.previous.title | escape }}</a>
{%- else -%}
<span></span>
{%- endif -%}
2019-09-11 06:19:34 +02:00
{%- if page.next -%}
2020-07-12 10:23:23 +02:00
<a class="next" href="{{ page.next.url }}" title="{{ page.next.title | escape }}">{{ page.next.title | escape }}</a>
{%- else -%}
<span></span>
{%- endif -%}
</div>
2019-09-11 06:19:34 +02:00
2020-07-12 10:23:23 +02:00
<div class="post-related">
<div>Related Articles</div>
<ul>
{% assign posts = site[page.collection] | sample:4 %}
{%- for post in posts -%}
<li><a class="post-link" href="{{post.url}}">{{post.title}}</a></li>
{%- endfor -%}
</ul>
</div>
{%- if page.comments != false -%}
2019-09-11 06:19:34 +02:00
{%- if site.disqus.shortname -%}
{%- include extensions/comments/disqus.html -%}
{%- endif -%}
2019-09-11 06:19:34 +02:00
{%- if site.gitment.username -%}
{%- include extensions/comments/gitment.html -%}
{%- endif -%}
2019-09-11 06:19:34 +02:00
{%- endif -%}
2019-09-11 06:19:34 +02:00
</section>
2019-09-11 06:19:34 +02:00
</div>