diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/shortcodes/streamimage.html | 6 | ||||
-rw-r--r-- | layouts/stream/list.html | 17 |
2 files changed, 17 insertions, 6 deletions
diff --git a/layouts/shortcodes/streamimage.html b/layouts/shortcodes/streamimage.html index eb5d468..2ff9f0a 100644 --- a/layouts/shortcodes/streamimage.html +++ b/layouts/shortcodes/streamimage.html @@ -1,3 +1,5 @@ {{ $filename := .Get "filename" }} -{{ $scratch := .Scratch }} -<img src="{{$scratch.Get "imgpath" }}/{{ $filename }}"> + +<!-- <p>{{ $.Page.Params.draft }}</p> --> +<p>{{ .Scratch.Get "toss" }}</p> +<img src="../../img/{{ $filename }}"> 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 }} |