diff options
author | Linlin Yan <yanlinlin82@gmail.com> | 2019-12-18 20:09:03 +0300 |
---|---|---|
committer | Linlin Yan <yanlinlin82@gmail.com> | 2019-12-18 20:09:03 +0300 |
commit | c7d8db9bf4bf6b3d7f7594716420c050c730d174 (patch) | |
tree | 5946d060e22d098e4d1990b48fe207cf563fa155 /layouts | |
parent | a5ccdd107e64a4afc1ba68b3eb723cbbbbf7d124 (diff) |
Avoid hardcoded 'post'
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html index e2b51c8..61ed863 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,6 +1,6 @@ {{- define "main" -}} <ul> - {{ range (.Paginate ( where .Site.RegularPages "Type" "==" "post" )).Pages -}} + {{ range (.Paginate ( where .Site.RegularPages "Type" "in" site.Params.mainSections )).Pages -}} <li>{{ .Date.Format "2006-01-02 15:04" }} - <a href="{{ .RelPermalink }}">{{ .Title }}</a></li> {{ end -}} </ul> |