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

github.com/bul-ikana/hugo-cards.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Aguirre <bul.ikana@gmail.com>2019-09-01 05:34:38 +0300
committerHugo Aguirre <bul.ikana@gmail.com>2019-09-01 05:34:38 +0300
commite3248eff22a6d90f01d8207cceee84075d478580 (patch)
tree29532d521775bce6ada9b0572dc90f84c7374ca1
parentc850140c0abdaf0380e45d489fb9227f7dac0f15 (diff)
Fix warnings for hugo 0.57
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/_default/single.html4
-rw-r--r--layouts/partials/sidebar.html2
3 files changed, 4 insertions, 4 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 69f4c6b..e1cd83d 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -5,7 +5,7 @@
<div class="row pack">
- {{ $paginator := .Paginate (where .Pages "Section" "posts") }}
+ {{ $paginator := .Paginate (where .Site.RegularPages "Section" "posts") }}
{{ range $paginator.Pages }}
<div class="col-md-4 card">
<a href="{{ .Permalink }}" class="index-anchor">
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 116b1f4..dd4f0dc 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -23,10 +23,10 @@
<div class="row">
<ul class="pager">
{{ with .NextPage }}
- <li><a class="next" href="{{ .URL }}">&laquo; {{ .Title }}</a></li>
+ <li><a class="next" href="{{ .Permalink }}">&laquo; {{ .Title }}</a></li>
{{ end }}
{{ with .PrevPage }}
- <li><a class="previous" href="{{ .URL }}">{{ .Title }} &raquo;</a></li>
+ <li><a class="previous" href="{{ .Permalink }}">{{ .Title }} &raquo;</a></li>
{{ end }}
</ul>
</div>
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index d3a5752..1c5d9f5 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -14,7 +14,7 @@
{{ range first 3 (where .Site.RegularPages "Section" "posts") }}
<li>
- <p><a href="{{ .URL }}">{{ .Title }}</a><small>&nbsp;&nbsp;{{ .Date.Format "January 2, 2006" }}</small></p>
+ <p><a href="{{ .Permalink }}">{{ .Title }}</a><small>&nbsp;&nbsp;{{ .Date.Format "January 2, 2006" }}</small></p>
</li>
{{ end }}