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

github.com/balaramadurai/hugo-travelify-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBala Ramadurai <bala@balaramadurai.net>2019-08-20 13:41:13 +0300
committerBala Ramadurai <bala@balaramadurai.net>2019-08-20 13:41:13 +0300
commit65f7a10b7e6bd78eb539078cbf429d7d4b5dfdfb (patch)
tree17a1d35be32ccdfef3a5adfcc4cf05727ceb8a2e
parent79db60ab6e0ae161bb034aa77d0bd079c1db0893 (diff)
Updated for hugo 0.57
https://github.com/gohugoio/hugoThemes/issues/678#issue-480803827 .Pages and .Data.Pages become .Site.RegularPages The community is good enough to remind me to update these!! Kudos to them :)
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/partials/article_list.html2
-rw-r--r--layouts/partials/widgets/recent_articles.html2
3 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 651dfbc..6ae1210 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -18,7 +18,7 @@
<div {{ if .Site.Params.widgets }}id="primary"{{ end }} class="no-margin-left">
<div id="content">
<section class="post type-post status-publish format-standard has-post-thumbnail hentry ">
- {{ $paginator := .Paginate .Data.Pages }}
+ {{ $paginator := .Paginate .Site.RegularPages }}
{{ range $paginator.Pages }}
{{ .Render "summary" }}
{{ end }}
diff --git a/layouts/partials/article_list.html b/layouts/partials/article_list.html
index ad50956..a62d2f0 100644
--- a/layouts/partials/article_list.html
+++ b/layouts/partials/article_list.html
@@ -1,4 +1,4 @@
-{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
+{{ $paginator := .Paginate (where .Site.RegularPages "Type" "post") }}
{{ range $paginator.Pages }}
<section id="main" class="post type-post status-publish format-standard has-post-thumbnail hentry">
diff --git a/layouts/partials/widgets/recent_articles.html b/layouts/partials/widgets/recent_articles.html
index e0bd002..ee28bb3 100644
--- a/layouts/partials/widgets/recent_articles.html
+++ b/layouts/partials/widgets/recent_articles.html
@@ -5,7 +5,7 @@
</h3>
<div class="rpwe-block">
<ul class=" rpwe-ul">
- {{ range first 5 (where .Site.Pages "Type" "post") }}
+ {{ range first 5 (where .Site.RegularPages "Type" "post") }}
<li class="rpwe-il rpwe-classfix">
<a class="rpwe-img" href="{{ .Permalink }}" class="thumbnail">
{{ if and (isset .Params "banner") (not (eq .Params.banner "")) }}