From a5ed209fe9fd6a6695addd639ea58e99c46dcbf5 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Sun, 1 May 2016 12:53:03 +0200 Subject: [PATCH] Add prev/next links --- layouts/post/single.html | 10 ++++++++++ static/css/main.css | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/layouts/post/single.html b/layouts/post/single.html index 4ad5c260..a13a67e8 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -12,6 +12,16 @@ {{ .Content }} +
+ +
{{ partial "disqus.html" . }} {{ partial "footer.html" . }} diff --git a/static/css/main.css b/static/css/main.css index 47aae1c4..b47e6490 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -66,3 +66,39 @@ main img { .post-category.memory-management { color: #990; } + +.PageNavigation { + font-size: 0.9em; + display: table; + width: 100%; + overflow: hidden; +} + +.PageNavigation a { + display: table-cell; +} + +.PageNavigation .previous { + text-align: left; +} + +.PageNavigation .next { + text-align: right; +} + +footer.footer { + margin-top: 1rem; + margin-bottom: 1rem; +} + +.footnotes { + font-size: 85%; +} + +.footnotes li { + margin-bottom: 1rem; +} + +sup, sub { + line-height: 0; +}