diff options
author | edavidaja <enyinnaya.aja@gmail.com> | 2019-06-18 20:55:48 +0300 |
---|---|---|
committer | edavidaja <enyinnaya.aja@gmail.com> | 2019-06-18 20:55:48 +0300 |
commit | 7767e08722d12070a4c15bfbebdbb754562ff6eb (patch) | |
tree | dbde771d1c9c985cc7c173e83bb0d2994ea6a59a | |
parent | c0f75a5890ebd6e9d58dbda3537b2b39151ea2b1 (diff) |
mainsections
-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 5d4e0b6..38677eb 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -5,7 +5,7 @@ <div id="home"> <h2>Posts</h2> <ul class="posts"> - {{ $section := where $.Site.RegularPages "Section" "post"}} + {{ $section := where site.RegularPages "Type" "in" site.Params.mainSections }} {{ range first 5 $section }} <li> <a href="{{ .Page.Permalink }}">{{ .Title }}</a> |