diff --git a/README.md b/README.md
index 8200f55b..9f2b684f 100644
--- a/README.md
+++ b/README.md
@@ -755,6 +755,10 @@ Page identifiers:
+ {{ if or $sections $pages }}
+
+ {{ end }}
+
+ {{ range $k, $v := . }}
+ {{ partial "paige/subpage.html" (site.GetPage $k) }}
+ {{ end }}
+
+{{ end }}
+
+{{ with $sections }}
+
+ {{ if or $collections $pages }}
+
+ {{ end }}
+
+ {{ range . }}
+ {{ partial "paige/subpage.html" . }}
+ {{ end }}
+
+{{ end }}
+
+{{ with $pages }}
{{ if $page.Param "paige.section_pages.full_pages" }}
- {{ $pager := $page.Paginate $page.Pages }}
+ {{ $pager := $page.Paginate . }}
+ {{ if or $collections $sections }}
+
+ {{ end }}
+
{{ range $pager.Pages }}
{{ partial "paige/article.html" (dict "fullpages" true "page" .) }}
{{ end }}
@@ -18,24 +50,29 @@
{{ end }}
{{ else }}
- {{ $pinned := where $page.Pages "Params.paige.pin" true }}
+ {{ if or $collections $sections }}
+
+ {{ end }}
+
+ {{ $pinned := where . "Params.paige.pin" true }}
{{ range $pinned.ByPublishDate.Reverse }}
{{ partial "paige/subpage.html" . }}
{{ end }}
- {{ $unpinned := complement $pinned $page.Pages }}
+ {{ $unpinned := complement $pinned . }}
{{ $pagegroups := $unpinned.ByPublishDate.Reverse.GroupByPublishDate "January 2006" }}
{{ $pager := $page.Paginate $pagegroups }}
{{ range $pager.PageGroups }}
-
+
{{ range .Pages }}
{{ partial "paige/subpage.html" . }}
{{ end }}
{{ end }}
+
{{ if or $pager.HasPrev $pager.HasNext }}