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:
authorEmiel Hollander <EmielH@users.noreply.github.com>2019-04-14 20:45:11 +0300
committerEmiel Hollander <EmielH@users.noreply.github.com>2019-04-14 20:45:11 +0300
commitad9cf5ad3816b7cc47b6e86bb65d54f773673591 (patch)
treeaa58280093c5bd3254c5430df9cfe704e533871e /layouts/_default
parent39044334e6e313473e60a6618669ad1823398129 (diff)
Remove deprecated .Page.URL
Replaced with .RelPermalink where applicable. Checking if a page is the home page can be done using .IsHome instead.
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/single.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index b056b0e..dba8344 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -14,10 +14,10 @@
<div class="pagination">
{{- if .PrevPage }}
- <a href="{{ .PrevPage.URL }}" class="left arrow">&#8592;</a>
+ <a href="{{ .PrevPage.RelPermalink }}" class="left arrow">&#8592;</a>
{{- end }}
{{- if .NextPage }}
- <a href="{{ .NextPage.URL }}" class="right arrow">&#8594;</a>
+ <a href="{{ .NextPage.RelPermalink }}" class="right arrow">&#8594;</a>
{{- end }}
<a href="#" class="top">Top</a>