diff options
author | Hugo Aguirre <bul.ikana@gmail.com> | 2019-09-01 05:34:38 +0300 |
---|---|---|
committer | Hugo Aguirre <bul.ikana@gmail.com> | 2019-09-01 05:34:38 +0300 |
commit | e3248eff22a6d90f01d8207cceee84075d478580 (patch) | |
tree | 29532d521775bce6ada9b0572dc90f84c7374ca1 | |
parent | c850140c0abdaf0380e45d489fb9227f7dac0f15 (diff) |
Fix warnings for hugo 0.57
-rw-r--r-- | layouts/_default/list.html | 2 | ||||
-rw-r--r-- | layouts/_default/single.html | 4 | ||||
-rw-r--r-- | layouts/partials/sidebar.html | 2 |
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 }}">« {{ .Title }}</a></li> + <li><a class="next" href="{{ .Permalink }}">« {{ .Title }}</a></li> {{ end }} {{ with .PrevPage }} - <li><a class="previous" href="{{ .URL }}">{{ .Title }} »</a></li> + <li><a class="previous" href="{{ .Permalink }}">{{ .Title }} »</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> {{ .Date.Format "January 2, 2006" }}</small></p> + <p><a href="{{ .Permalink }}">{{ .Title }}</a><small> {{ .Date.Format "January 2, 2006" }}</small></p> </li> {{ end }} |