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:45:16 +0300
committerGitHub <noreply@github.com>2019-08-28 13:45:16 +0300
commite60e29352a33ae85ec95ceb1ce7c9c8369ac80d6 (patch)
tree064ead6bed7e89a74f1399243876fcb38614a2d9
parentf0255a38759838efabd9bc8e44cafcd3fcdfa4cd (diff)
parent55af05b2ecfdb36a8a66d1786a331579b85c2b97 (diff)
Merge pull request #55 from AngeloStavrow/54_prev-next-links-reversed
Adopts .PrevPage/.NextPage for article footer links
-rw-r--r--CHANGELOG.md3
-rw-r--r--README.md2
-rw-r--r--layouts/partials/footer.html14
-rw-r--r--static/css/style.css4
4 files changed, 12 insertions, 11 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0f3150b..45222f8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,7 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixed
-- Breaking changes in 0.57 per [#52](https://github.com/AngeloStavrow/indigo/issues/52)
+- Breaking changes in article lists introduced in Hugo 0.57 per [#52](https://github.com/AngeloStavrow/indigo/issues/52)
+- Newer/Older links in article footers now work as expected in Hugo 0.50 and later per [#54](https://github.com/AngeloStavrow/indigo/issues/54)
## [1.0.6]
### Fixed
diff --git a/README.md b/README.md
index 62b5e6a..1de7cb8 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@ These instructions will get you a copy of the project up and running on your loc
### Prerequisites
-Some portions of the templates use variable rewriting, introduced in Hugo 0.48, so you'll need to make sure you're running at least this version. You can check what version you're running with
+This theme is built and tested against the latest version of Hugo and currently requires a minimum version of 0.50. You can check what version you're running with
```
$ hugo version
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 {