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

github.com/yoshiharuyamashita/blackburn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRecle Etino Vibal <recleevibal@gmail.com>2019-10-03 01:39:29 +0300
committerGitHub <noreply@github.com>2019-10-03 01:39:29 +0300
commit123ebe8bb4fd3708fc51dab42613e6a3a7d37d4c (patch)
tree12c0a776f681cccb0ce0632bcf581be1d4eeb303
parent643be7f9157c9cb3c2c2f020ffab8725018c1b66 (diff)
Remove .Data.Pages in favor of .Site.RegularPages
Using only .Data.Pages will only show a link to the Post page in the home page. Using .Site.RegularPages returns the homepage to a normal showcase of existing posts. This change happened starting at Hugo >0.57.
-rw-r--r--layouts/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 132386f..ef21430 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -6,7 +6,7 @@
</div>
<div class="content">
- {{ range ( .Paginate (where .Data.Pages "Type" "post")).Pages }}
+ {{ range ( .Paginate (where .Site.RegularPages "Type" "post")).Pages }}
{{ .Render "summary"}}
{{ end }}