diff options
author | Benny Mei <meibenny@gmail.com> | 2019-08-20 05:43:11 +0300 |
---|---|---|
committer | Benny Mei <meibenny@gmail.com> | 2019-08-20 05:43:11 +0300 |
commit | 7c40d2c3737830b8fe4a1fe31a7795ae61209fdd (patch) | |
tree | 36e88575005a44818ade7d4c70b3442647ba21ad | |
parent | 2e3786c7fc33e38f9c1dcf683ef77a2fe60f51e4 (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.html | 4 |
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" . }} |