Implement pagination and auto-sitemap
This commit is contained in:
@@ -19,15 +19,21 @@
|
||||
<div class="container">
|
||||
<h2 class="highlighted">article</h2>
|
||||
<div id="articles">
|
||||
{% for post in site.posts %}
|
||||
<article>
|
||||
<div class="card">
|
||||
<img src="/assets/graphics/anon.png" alt="little face with sunglasses">
|
||||
<a href="{{ post.url }}">{{ post.title }}</a>
|
||||
<p>{{ post.date | date: "%d/%m/%y" }}</p>
|
||||
</div>
|
||||
</article>
|
||||
{% for post in paginator.posts %}
|
||||
<div class="card">
|
||||
<img src="/assets/graphics/anon.png" alt="little face with sunglasses">
|
||||
<a href="{{ post.url }}">{{ post.title }}</a>
|
||||
<p>{{ post.date | date: "%d/%m/%y" }}</p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
<div class="paginate">
|
||||
{% if paginator.previous_page %}
|
||||
<a href="{{ paginator.previous_page_path }}">Previous page</a>
|
||||
{% endif %}
|
||||
{% if paginator.next_page %}
|
||||
<a href="{{ paginator.next_page_path }}">Next page</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
<p>or uhh just play <a href="#">minesweeper</a> :3</p>
|
||||
<img src="/assets/graphics/cutiecat.png" alt="little animated cats in a line">
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user