Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/AngeloStavrow/indigo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelo Stavrow <contact@angelostavrow.com>2019-08-28 13:36:24 +0300
committerAngelo Stavrow <contact@angelostavrow.com>2019-08-28 13:36:24 +0300
commitac1570a4b8b1229d0ff51edfeddd3eef991e51bc (patch)
tree91eeb997cc64fa230f05593bc829eea6c21ee904
parentf0255a38759838efabd9bc8e44cafcd3fcdfa4cd (diff)
Adopts .PrevPage/.NextPage for article footer links
-rw-r--r--layouts/partials/footer.html14
-rw-r--r--static/css/style.css4
2 files changed, 9 insertions, 9 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 6e227c0..864138b 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -14,11 +14,11 @@
</div>
{{ end }}
<div id="footer">
- {{ if or (.Prev) (.Next) }}
+ {{ if or (.NextPage) (.PrevPage) }}
<nav id="article-skip">
- <div class="prev">
- {{ if and (.Prev) (not .Params.Menu) }}
- <a alt="Newer article" href="{{ .Prev.Permalink }}">&larr; Newer</a>
+ <div class="next">
+ {{ if and (.NextPage) (not .Params.Menu) }}
+ <a alt="Newer article" href="{{ .NextPage.Permalink }}">&larr; Newer</a>
{{ else }}
<p>&nbsp;</p>
{{ end }}
@@ -26,9 +26,9 @@
<div class="top">
<a alt="Top of page" href="#">Top</a>
</div>
- <div class="next">
- {{ if and (.Next) (not .Params.Menu) }}
- <a alt="Older article" href="{{ .Next.Permalink }}">Older &rarr;</a>
+ <div class="prev">
+ {{ if and (.PrevPage) (not .Params.Menu) }}
+ <a alt="Older article" href="{{ .PrevPage.Permalink }}">Older &rarr;</a>
{{ else }}
<p>&nbsp;</p>
{{ end }}
diff --git a/static/css/style.css b/static/css/style.css
index 676124b..37d2453 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -404,11 +404,11 @@ nav#article-skip {
}
.next {
- text-align: right;
+ text-align: left;
}
.prev {
- text-align: left;
+ text-align: right;
}
.top {