summaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
authorMiran Bastaja <mbastaja@sorre.xyz>2025-10-04 14:25:52 +0200
committerMiran Bastaja <mbastaja@sorre.xyz>2025-10-04 16:29:21 +0200
commit50f15f8b6234be058f7a1a87ca96e7d97198da11 (patch)
treef4d6e7b6413fe01ac5db82a5ae48117fd2a65422 /templates/index.html
parent408d3a49813bfa8f4397decd058cfa5a6110a859 (diff)
Update flake.lock, change theme to radion
`no style, please!` seems to have disappeared off of gitlab and I'm too lazy to hunt the new repo down. (if it even exists)
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html48
1 files changed, 28 insertions, 20 deletions
diff --git a/templates/index.html b/templates/index.html
index f57baf5..11ff2d2 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -2,31 +2,39 @@
{% block content %}
<h1 id="page-title">
- {{ section.title }}
+ {{ section.title }}
</h1>
<p>{{ section.description }}</p>
<nav>
- <table>
- <caption>
- Posts
- </caption>
- <thead>
- <tr>
- <td>Title</td>
- <td>Date</td>
- </tr>
- </thead>
- <tbody>
- {% for page in section.pages %}
- <tr>
- <td><a href="{{ page.permalink | safe }}">{{page.title}}</a></td>
- <td>{{ page.date }}</td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
+ <table>
+ <caption>
+ Posts
+ </caption>
+ <thead>
+ <tr>
+ <td>Title</td>
+ <td>Date</td>
+ </tr>
+ </thead>
+ <tbody>
+ {% for page in paginator.pages %}
+ <tr>
+ <td><a href="{{ page.permalink | safe }}">{{page.title}}</a></td>
+ <td>{{ page.date }}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+ <nav class="pagination">
+ {% if paginator.previous %}
+ <a class="previous" href="{{ paginator.previous }}">‹ Previous</a>
+ {% endif %}
+ {% if paginator.next %}
+ <a class="next" href="{{ paginator.next }}">Next ›</a>
+ {% endif %}
+ </nav>
</nav>
{% endblock %} \ No newline at end of file