summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2016-11-15 11:09:26 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2016-11-15 11:09:26 +0100
commit517a416ebd9afb75275998bc257e07404d991cc1 (patch)
tree6e958c9abe8b948ffd942ea128bf3dbf3578acf1
parentfb4aa7e6db88943c0911c2a398f47465e9c291e6 (diff)
downloadkyblo-517a416ebd9afb75275998bc257e07404d991cc1.tar.xz
Fix up paddings
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r--templates/entry.html8
-rw-r--r--templates/layout.html5
2 files changed, 6 insertions, 7 deletions
diff --git a/templates/entry.html b/templates/entry.html
index e9acc7a..ec28fe4 100644
--- a/templates/entry.html
+++ b/templates/entry.html
@@ -10,17 +10,13 @@
{{ content }}
</div>
</article>
+<div id="post-nav">
{% if older and newer%}
-<div>
<a href="{{ older['file'] }}.html">Older</a> — <a href="{{ newer['file'] }}.html">Newer</a>
-</div>
{% elif older %}
-<div>
<a href="{{ older['file'] }}.html">Older</a>
-</div>
{% elif newer %}
-<div>
<a href="{{ newer['file'] }}.html">Newer</a>
-</div>
{% endif %}
+</div>
{% endblock %}
diff --git a/templates/layout.html b/templates/layout.html
index 466f2b7..dc1507a 100644
--- a/templates/layout.html
+++ b/templates/layout.html
@@ -28,8 +28,9 @@ header nav a, header nav a:visited {
header nav a:hover {
color: #000;
}
-header, article, footer {
+header, #content, footer {
padding-left: 0.5rem;
+ padding-right: 0.5rem;
}
article p {
white-space: pre-wrap;
@@ -72,7 +73,9 @@ footer ul#contact-info li {
</nav>
</header>
<hr />
+ <div id="content">
{% block content %}{% endblock %}
+ </div>
<hr />
<footer>
<div>