portal/blog/index.html
2021-04-13 21:37:26 +02:00

17 lines
846 B
HTML
Executable File

---
title: Blog
layout: page-screen
---
<h2 class="blog-head">Recent Posts</h2>
{% for post in paginator.posts %}
<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>
{%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> Page {{paginator.page}} of {{paginator.total_pages}} <a href="{{site.baseurl}}{{paginator.next_page_path}}">»</a> </p>
{% endif %}
{% endif %}