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

github.com/lgaida/mediumish-gohugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLenard Gaida <mail@lgaida.de>2019-01-20 22:03:46 +0300
committerLenard Gaida <mail@lgaida.de>2019-01-20 22:03:46 +0300
commit6022d490d20ab69a072fbd4e3bed7ba511568cd2 (patch)
tree8890424af5d87f624a42d6779024a89cc86da887
parentb4f44f88647194625fcf45088820f70e2c5dd604 (diff)
fix deprecated prev and next, see #6
-rw-r--r--layouts/_default/single.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 6df6746..9384dea 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -65,17 +65,17 @@
</div>
<!-- End Categories -->
- <!-- Prev/Next -->
+ <!-- Next and PrevPage -->
<div class="row PageNavigation d-flex justify-content-between font-weight-bold">
- {{with .Prev}}
- <a class="prev d-block col-md-6" href="{{.URL}}"> &laquo; {{.Title}}</a>
+ {{with .NextPage}}
+ <a class="d-block col-md-6" href="{{.URL}}"> &laquo; {{.Title}}</a>
{{end}}
- {{with .Next}}
- <a class="next d-block col-md-6 text-lg-right" href="{{.URL}}">{{.Title}} &raquo;</a>
+ {{with .PrevPage}}
+ <a class="d-block col-md-6 text-lg-right" href="{{.URL}}">{{.Title}} &raquo;</a>
{{end}}
<div class="clearfix"></div>
</div>
- <!-- End Prev/Next -->
+ <!-- End Next and PrevPage -->
</div>
<!-- End Post -->
</div>