summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html7
-rw-r--r--templates/index.html48
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