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

github.com/edavidaja/docter.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoredavidaja <enyinnaya.aja@gmail.com>2019-06-18 20:55:48 +0300
committeredavidaja <enyinnaya.aja@gmail.com>2019-06-18 20:55:48 +0300
commit7767e08722d12070a4c15bfbebdbb754562ff6eb (patch)
treedbde771d1c9c985cc7c173e83bb0d2994ea6a59a
parentc0f75a5890ebd6e9d58dbda3537b2b39151ea2b1 (diff)
mainsections
-rw-r--r--layouts/index.html2
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>