diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2019-11-09 14:43:42 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2019-11-09 14:43:42 +0100 |
commit | 06cbd9914cb9ff545392d9270d5ceb321ac71ce8 (patch) | |
tree | 0d713ac3cd41c3f734d46d39390652c119c54762 | |
parent | 8b80b29a430184423e22a2207b33956b155b3147 (diff) |
Fix: Newer hugo wants .Site.Pages instead of .Data.Pages here
-rw-r--r-- | themes/cocoa/layouts/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/cocoa/layouts/index.html b/themes/cocoa/layouts/index.html index 02f5311..5847cc7 100644 --- a/themes/cocoa/layouts/index.html +++ b/themes/cocoa/layouts/index.html @@ -12,7 +12,7 @@ {{ if gt $latestpostscount 0 }} <div class="page-heading">{{ i18n "latestPosts" }}</div> <ul> - {{ range (first $latestpostscount (where .Data.Pages.ByPublishDate "Section" "blog").Reverse) }} + {{ range (first $latestpostscount (where .Site.Pages.ByPublishDate "Section" "blog").Reverse) }} {{ partial "li.html" . }} {{ end }} {{ if gt $totalpostscount $latestpostscount }} |