summaryrefslogtreecommitdiffstats
path: root/layouts/stream/list.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/stream/list.html')
-rw-r--r--layouts/stream/list.html17
1 files changed, 13 insertions, 4 deletions
diff --git a/layouts/stream/list.html b/layouts/stream/list.html
index 127d2eb..2fb46b4 100644
--- a/layouts/stream/list.html
+++ b/layouts/stream/list.html
@@ -1,23 +1,32 @@
{{ define "main" }}
+
{{ .Content }}
+
{{ $paginator := .Paginate (where site.RegularPages "Section" "stream") }}
+
{{ range $paginator.Pages }}
<h3 id="{{ .Date.Format "Monday, 2 January 2006"| urlize}}">{{ .Date.Format "Monday, 2 January 2006" }}</h3>
+
+{{ $.Scratch.Set "toss" "toss" }}
+<div style="margin-bottom: 1em;">
+ {{ .Content }}
+</div>
+
+{{ $.Scratch }}
+
{{ if $paginator.HasPrev }}
<p>this page is paginated</p>
+ {{ $.Page.Scratch.Add "imgpath" "PAGINATED" }}
{{ else }}
<p>this page is NOT paginated</p>
- {{ $.Scratch.Set "imgpath" "img/" }}
+ {{ $.Page.Scratch.Set "imgpath" "img/" }}
{{ end }}
-<div style="margin-bottom: 1em;">
- {{ .Content }}
-</div>
{{ if .Params.tags }}