1
0
mirror of https://github.com/chylex/Blog.git synced 2024-11-23 19:42:49 +01:00
Blog/index.html

32 lines
874 B
HTML

---
titleimg: /assets/img/avatar.png
---
{% for post in paginator.posts %}
<article>
<div class="blog-entry-header">
<h1><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h1>
<p class="date">{{ post.date | date: '%b %Y' }}</p>
</div>
<div class="blog-entry-content">{{ post.excerpt }}</div>
</article>
<hr>
{% endfor %}
<nav class="pagination">
<div>
{% if paginator.previous_page_path %}
<a href="{{ paginator.previous_page_path | relative_url }}">&lsaquo; previous page</a>
{% else %}
<span class="inactive-link">&lsaquo; previous page</span>
{% endif %}
</div>
<div>
{% if paginator.next_page_path %}
<a href="{{ paginator.next_page_path | relative_url }}">next page &rsaquo;</a>
{% else %}
<span class="inactive-link">next page &rsaquo;</span>
{% endif %}
</div>
</nav>