portal/blog/index.html

17 lines
846 B
HTML
Raw Normal View History

2020-01-25 22:56:59 +01:00
---
2020-01-26 14:03:17 +01:00
title: Blog
2020-01-25 22:56:59 +01:00
layout: page-screen
---
2021-04-13 21:37:26 +02:00
<h2 class="blog-head">Recent Posts</h2>
2020-01-26 01:58:08 +01:00
{% for post in paginator.posts %}
2021-04-13 21:37:26 +02:00
<p class="blog-date"> ░▒▓█ {{post.date | date: '%Y-%m-%d' }} </p><p class="blog-post"><a href="{{site.baseurl}}{{post.url}}">cat {{post.title | replace:' ','_'}}</a></p>
2020-01-25 22:56:59 +01:00
{%endfor%}
2020-01-26 01:58:08 +01:00
{% 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> Page {{paginator.page}} of {{paginator.total_pages}} <a href="{{site.baseurl}}{{paginator.next_page_path}}">»</a> </p>
2020-01-26 01:58:08 +01:00
{% endif %}
{% endif %}