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

github.com/EmielH/tale-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/_default/single.html10
-rw-r--r--layouts/about/list.html13
2 files changed, 6 insertions, 17 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index f705d3c..b056b0e 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -13,15 +13,15 @@
</div>
<div class="pagination">
- {{- if .Next }}
- <a href="{{ .Next.URL }}" class="left arrow">&#8592;</a>
+ {{- if .PrevPage }}
+ <a href="{{ .PrevPage.URL }}" class="left arrow">&#8592;</a>
{{- end }}
- {{- if .Prev }}
- <a href="{{ .Prev.URL }}" class="right arrow">&#8594;</a>
+ {{- if .NextPage }}
+ <a href="{{ .NextPage.URL }}" class="right arrow">&#8594;</a>
{{- end }}
<a href="#" class="top">Top</a>
</div>
</main>
-{{ end }} \ No newline at end of file
+{{ end }}
diff --git a/layouts/about/list.html b/layouts/about/list.html
index 3458ca4..30dd850 100644
--- a/layouts/about/list.html
+++ b/layouts/about/list.html
@@ -9,17 +9,6 @@
{{ .Content }}
</div>
-
- <div class="pagination">
- {{ if .Next }}
- <a href="{{ .Next.URL }}" class="left arrow">&#8592;</a>
- {{ end }}
- {{ if .Prev }}
- <a href="{{ .Prev.URL }}" class="right arrow">&#8594;</a>
- {{ end }}
-
- <a href="#" class="top">Top</a>
- </div>
</main>
-{{ end }} \ No newline at end of file
+{{ end }}