summaryrefslogtreecommitdiffstats
path: root/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/list.atom.xml2
-rw-r--r--layouts/_default/list.feed.xml2
-rw-r--r--layouts/_default/list.html.html12
-rw-r--r--layouts/_default/list.json.json2
4 files changed, 9 insertions, 9 deletions
diff --git a/layouts/_default/list.atom.xml b/layouts/_default/list.atom.xml
index bd1f982..75892fd 100644
--- a/layouts/_default/list.atom.xml
+++ b/layouts/_default/list.atom.xml
@@ -3,7 +3,7 @@
{{- $pages := slice -}}
{{- if $.IsHome -}}
- {{- $mainSections := site.Params.mainSections | default (slice "post") }}
+ {{- $mainSections := site.Params.mainSections | default (slice "posts") }}
{{- $pages = where $pctx.RegularPages.ByDate.Reverse "Type" "in" $mainSections -}}
{{- else if $.IsSection -}}
{{- $pages = $pctx.RegularPages.ByDate.Reverse -}}
diff --git a/layouts/_default/list.feed.xml b/layouts/_default/list.feed.xml
index 87d62cc..ae16aca 100644
--- a/layouts/_default/list.feed.xml
+++ b/layouts/_default/list.feed.xml
@@ -3,7 +3,7 @@
{{- $pages := slice -}}
{{- if $.IsHome -}}
- {{- $mainSections := site.Params.mainSections | default (slice "post") }}
+ {{- $mainSections := site.Params.mainSections | default (slice "posts") }}
{{- $pages = where $pctx.RegularPages.ByDate.Reverse "Type" "in" $mainSections -}}
{{- else if $.IsSection -}}
{{- $pages = $pctx.RegularPages.ByDate.Reverse -}}
diff --git a/layouts/_default/list.html.html b/layouts/_default/list.html.html
index 13f2947..1badde4 100644
--- a/layouts/_default/list.html.html
+++ b/layouts/_default/list.html.html
@@ -1,13 +1,13 @@
{{ define "main" }}
<div class="articles">
{{ with .Title }}<h1 class="page-title">{{ . }}</h1>{{ end }}
- {{- with .Content }}
- <div class="category-content">
- {{ .Content }}
- </div>
- {{- end }}
+ {{ with .Content }}
+ <div class="category-content">
+ {{ .Content }}
+ </div>
+ {{ end }}
{{ range .Paginator.Pages }}
- {{- .Render "teaser" }}
+ {{ .Render "teaser" }}
{{ end }}
</div>
{{ end }}
diff --git a/layouts/_default/list.json.json b/layouts/_default/list.json.json
index 30b6f80..b912df0 100644
--- a/layouts/_default/list.json.json
+++ b/layouts/_default/list.json.json
@@ -3,7 +3,7 @@
{{- $pages := slice -}}
{{- if $.IsHome -}}
- {{- $mainSections := site.Params.mainSections | default (slice "post") }}
+ {{- $mainSections := site.Params.mainSections | default (slice "posts") }}
{{- $pages = where $pctx.RegularPages.ByDate.Reverse "Type" "in" $mainSections -}}
{{- else if $.IsSection -}}
{{- $pages = $pctx.RegularPages.ByDate.Reverse -}}