diff options
| author | Miran Bastaja <mbastaja@sorre.xyz> | 2025-10-04 14:25:52 +0200 |
|---|---|---|
| committer | Miran Bastaja <mbastaja@sorre.xyz> | 2025-10-04 16:29:21 +0200 |
| commit | 50f15f8b6234be058f7a1a87ca96e7d97198da11 (patch) | |
| tree | f4d6e7b6413fe01ac5db82a5ae48117fd2a65422 /templates | |
| parent | 408d3a49813bfa8f4397decd058cfa5a6110a859 (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')
| -rw-r--r-- | templates/base.html | 7 | ||||
| -rw-r--r-- | templates/index.html | 48 |
2 files changed, 31 insertions, 24 deletions
diff --git a/templates/base.html b/templates/base.html index 53a9db5..90b6918 100644 --- a/templates/base.html +++ b/templates/base.html @@ -5,7 +5,6 @@ <meta charset="UTF-8"> <meta content="text/html; charset=UTF-8" http-equiv="content-type" /> <meta content="width=device-width, initial-scale=1" name="viewport" /> - <link rel="stylesheet" href="/style.css"> {% if page.title %} {% set title = page.title %} @@ -20,13 +19,13 @@ <link rel="alternate" type="application/atom+xml" title="RSS" href="{{ get_url(path="atom.xml", trailing_slash=false)}}"> {% endif %} - <link rel="stylesheet" href="{{ get_url(path='style.css', trailing_slash=false) | safe }}" /> + <link rel="stylesheet" href="{{ get_url(path='site.css', trailing_slash=false) | safe }}" /> </head> <body theme="auto"> - <div class="w"> + <main style="max-width: 50rem;padding: 2rem 6rem;"> {% block content %} {% endblock %} - </div> + </main> </body> </html> 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 |
