diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index bcc7a82..3e96ad5 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -14,19 +14,7 @@
{{ end }}
-
- {{ with .Paginator.Pages }}
-
- {{ range . }}
- - {{ .Render "summary/post" }}
- {{ end }}
-
- {{ else }}
-
- {{ i18n "no_posts" }}
-
- {{ end }}
-
+ {{ partial "page-list.html" .Paginator.Pages }}
{{ partial "pagination.html" . }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index b269aa0..9874658 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -79,13 +79,7 @@
- {{ with .Paginator.Pages }}
-
- {{ range . }}
- - {{ .Render "summary/post" }}
- {{ end }}
-
- {{ else }}
-
- {{ i18n "no_posts" }}
-
- {{ end }}
-
+ {{ partial "page-list.html" .Paginator.Pages }}
{{ partial "pagination.html" . }}
{{ end }}
diff --git a/layouts/categories/term.html b/layouts/categories/term.html
index 8fc31fa..569c37b 100644
--- a/layouts/categories/term.html
+++ b/layouts/categories/term.html
@@ -9,19 +9,7 @@
{{ . }}
{{ end }}
-
- {{ with .Paginator.Pages }}
-
- {{ range . }}
- - {{ .Render "summary/post" }}
- {{ end }}
-
- {{ else }}
-
- {{ i18n "no_posts" }}
-
- {{ end }}
-
+ {{ partial "page-list.html" .Paginator.Pages }}
{{ partial "pagination.html" . }}
{{ end }}
diff --git a/layouts/index.html b/layouts/index.html
index 3d97dd8..89340a8 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -13,19 +13,7 @@
{{ partial "rss-link.html" . }}
- {{ with (.Paginate .Site.RegularPages).Pages }}
-
+ {{ with . }}
+
+ {{ range . }}
+ - {{ .Render "summary/post" }}
+ {{ end }}
+
+ {{ else }}
+
+ {{ i18n "no_posts" }}
+
+ {{ end }}
+
diff --git a/layouts/series/term.html b/layouts/series/term.html
index 5acb511..17a2469 100644
--- a/layouts/series/term.html
+++ b/layouts/series/term.html
@@ -11,24 +11,10 @@
{{ . }}
{{ end }}
-
- {{ with .Paginator.Pages.Reverse }}
-
- {{ $i := 0 }}
- {{ $total := len $.Pages }}
- {{ range . }}
- {{ $i = add 1 $i }}
- {{ .Scratch.Set "series_position" $i }}
- {{ .Scratch.Set "series_total" $total }}
- - {{ .Render "summary/post" }}
- {{ end }}
-
- {{ else }}
-
- {{ i18n "no_posts" }}
-
- {{ end }}
-
+ {{ with .Paginator.Pages.Reverse }}
+ {{ partial "page-list.html" . }}
+ {{ end }}
+
{{ partial "pagination.html" . }}
{{ end }}
diff --git a/layouts/tags/term.html b/layouts/tags/term.html
index 1876b4f..eb01e8b 100644
--- a/layouts/tags/term.html
+++ b/layouts/tags/term.html
@@ -9,19 +9,7 @@
{{ . }}
{{ end }}
-
- {{ with .Paginator.Pages }}
-
- {{ range . }}
- - {{ .Render "summary/post" }}
- {{ end }}
-
- {{ else }}
-
- {{ i18n "no_posts" }}
-
- {{ end }}
-
+ {{ partial "page-list.html" .Paginator.Pages }}
{{ partial "pagination.html" . }}
{{ end }}
diff --git a/layouts/taxonomy/term.html b/layouts/taxonomy/term.html
index cf40d14..4e08ec1 100644
--- a/layouts/taxonomy/term.html
+++ b/layouts/taxonomy/term.html
@@ -9,19 +9,7 @@
{{ . }}
{{ end }}
-
- {{ with .Paginator.Pages }}
-
- {{ range . }}
- - {{ .Render "summary/post" }}
- {{ end }}
-
- {{ else }}
-
- {{ i18n "no_posts" }}
-
- {{ end }}
-
+ {{ partial "page-list.html" .Paginator.Pages }}
{{ partial "pagination.html" . }}
{{ end }}