Add posts page

parent a495c927
......@@ -3,7 +3,7 @@ description: "Politecnico Open unix Labs"
url: "https://poul.org"
baseurl: ""
paginate_path: "events/page/:num/"
paginate_path: "posts/page/:num/"
permalink: "/:year/:month/:title/"
static_url: "https://static.poul.org"
......@@ -25,6 +25,8 @@ navigation:
url: /coding_gym
- title: Projects
url: /projects
- title: Posts
url: /posts
exclude:
- Gemfile
......
---
layout: page
title: POuL » Posts
pagetitle: Posts
---
<h1 class="pageTitle">Posts</h1>
<ul class="posts noList">
{% for post in paginator.posts %}
<li>
<span class="date">{{ post.date | date: '%B %d, %Y' }}</span>
<h3><a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h3>
<p>{% if post.description %}{{ post.description }}{% else %}{{ post.excerpt | strip_html }}{% endif %}</p>
</li>
{% endfor %}
</ul>
<!-- Pagination links -->
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="previous button__outline">Post recenti</a>
{% endif %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="next button__outline">Post vecchi</a>
{% endif %}
</div>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment