portal/blog/index.html
2020-01-26 14:03:17 +01:00

17 lines
782 B
HTML

---
title: Blog
layout: page-screen
---
<h2>▄▀▄▀ Recent Posts ▀▄▀▄</h2>
{% for post in paginator.posts %}
░▒▓█ {{post.date | date: '%Y-%m-%d' }} █▓▒░<a href="{{site.baseurl}}{{post.url}}">cat {{post.title | replace:' ','_'}}.txt</a>
{%endfor%}
{% if paginator.total_pages > 1 %}
{% if paginator.page == 1 %} <p>Page {{paginator.page}} <a href="{{site.baseurl}}{{paginator.next_page_path}}">»</a> </p>
{% elsif paginator.page == paginator.total_pages %} <p> <a href="{{site.baseurl}}{{paginator.previous_page_path}}">«</a> Page {{paginator.page}} </p>
{% else %} <p> <a href="{{site.baseurl}}{{paginator.previous_page_path}}">«</a> {{paginator.page}} <a href="{{site.baseurl}}{{paginator.next_page_path}}">»</a> </p>
{% endif %}
{% endif %}