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

github.com/yanlinlin82/simple-style.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinlin Yan <yanlinlin82@gmail.com>2019-12-18 20:09:03 +0300
committerLinlin Yan <yanlinlin82@gmail.com>2019-12-18 20:09:03 +0300
commitc7d8db9bf4bf6b3d7f7594716420c050c730d174 (patch)
tree5946d060e22d098e4d1990b48fe207cf563fa155 /layouts
parenta5ccdd107e64a4afc1ba68b3eb723cbbbbf7d124 (diff)
Avoid hardcoded 'post'
Diffstat (limited to 'layouts')
-rw-r--r--layouts/index.html2
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>