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

github.com/meibenny/elephants.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Mei <meibenny@gmail.com>2019-08-20 05:43:11 +0300
committerBenny Mei <meibenny@gmail.com>2019-08-20 05:43:11 +0300
commit7c40d2c3737830b8fe4a1fe31a7795ae61209fdd (patch)
tree36e88575005a44818ade7d4c70b3442647ba21ad
parent2e3786c7fc33e38f9c1dcf683ef77a2fe60f51e4 (diff)
Use .Site.RegularPages instead of .Data.Pages.
This change is required by https://github.com/gohugoio/hugoThemes/issues/682 in order to keep elephants in the Hugo theme listing.
-rw-r--r--layouts/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html
index e6c9591..7520810 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -2,7 +2,7 @@
<section id=content>
<ul class=posts_listing>
- {{ range .Data.Pages.ByPublishDate.Reverse }}
+ {{ range .Site.RegularPages.ByPublishDate.Reverse }}
<div id="posts">
<div id=date class="date-time-title">
<time>{{ .Date.Format (.Site.Params.dateform | default "Jan 02 2006") }}</time>
@@ -15,4 +15,4 @@
</ul>
</section>
-{{ partial "footer.html" . }} \ No newline at end of file
+{{ partial "footer.html" . }}