diff --git a/layouts/index.html b/layouts/index.html
index e541370..1f079a9 100755
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -12,48 +12,53 @@
{{/* Derive the section name */}}
{{ $section_name := index (.Site.Params.mainSections) 0 }}
-
- {{/* Use $section_name to get the section title. Use "with" to only show it if it exists */}}
- {{ with .Site.GetPage "section" $section_name }}
-
- {{ if .Site.Params.index_show_recent }}
- Recent {{ .Title }}:
- {{ else }}
- {{ .Title }}:
- {{ end }}
-
- {{ end }}
+ {{ if $.Param "all_post_list" }}
+ {{ partial "all-posts-list.html" . }}
+ {{ else }}
- {{ $n_posts := $.Param "recent_posts_number" | default 3 }}
+
+ {{/* Use $section_name to get the section title. Use "with" to only show it if it exists */}}
+ {{ with .Site.GetPage "section" $section_name }}
+
+ {{ if .Site.Params.index_show_recent }}
+ Recent {{ .Title }}:
+ {{ else }}
+ {{ .Title }}:
+ {{ end }}
+
+ {{ end }}
-
- {{/* Range through the first $n_posts items of the section */}}
- {{ range (first $n_posts $section) }}
-
- {{ partial "summary-with-image.html" . }}
-
- {{ end }}
-
+ {{ $n_posts := $.Param "recent_posts_number" | default 3 }}
- {{ if ge $section_count (add $n_posts 1) }}
-
- {{$.Param "index_more_copy" | default "More" }}
- {{/* Now, range through the next four after the initial $n_posts items. Nest the requirements, "after" then "first" on the outside */}}
- {{ range (first 4 (after $n_posts $section)) }}
-
- {{ end }}
-
- {{/* As above, Use $section_name to get the section title, and URL. Use "with" to only show it if it exists */}}
- {{ with .Site.GetPage "section" $section_name }}
- {{$.Param "index_all_copy" | default "All" }} {{.Title }}
- {{ end }}
+
+ {{/* Range through the first $n_posts items of the section */}}
+ {{ range (first $n_posts $section) }}
+
+ {{ partial "summary-with-image.html" . }}
+
+ {{ end }}
- {{ end }}
-
+ {{ if ge $section_count (add $n_posts 1) }}
+
+ {{$.Param "index_more_copy" | default "More" }}
+ {{/* Now, range through the next four after the initial $n_posts items. Nest the requirements, "after" then "first" on the outside */}}
+ {{ range (first 4 (after $n_posts $section)) }}
+
+ {{ end }}
+
+ {{/* As above, Use $section_name to get the section title, and URL. Use "with" to only show it if it exists */}}
+ {{ with .Site.GetPage "section" $section_name }}
+ {{$.Param "index_all_copy" | default "All" }} {{.Title }}
+ {{ end }}
+
+ {{ end }}
+
+
+ {{ end }}
{{ end }}
{{ end }}
diff --git a/layouts/partials/all-posts-list.html b/layouts/partials/all-posts-list.html
new file mode 100644
index 0000000..18da19e
--- /dev/null
+++ b/layouts/partials/all-posts-list.html
@@ -0,0 +1,34 @@
+{{ $n_posts := $.Param "recent_posts_number" | default 3 }}
+
+