summaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/shortcodes/streamimage.html3
-rw-r--r--layouts/stream/list.html1
2 files changed, 4 insertions, 0 deletions
diff --git a/layouts/shortcodes/streamimage.html b/layouts/shortcodes/streamimage.html
new file mode 100644
index 0000000..eb5d468
--- /dev/null
+++ b/layouts/shortcodes/streamimage.html
@@ -0,0 +1,3 @@
+{{ $filename := .Get "filename" }}
+{{ $scratch := .Scratch }}
+<img src="{{$scratch.Get "imgpath" }}/{{ $filename }}">
diff --git a/layouts/stream/list.html b/layouts/stream/list.html
index 000d00e..127d2eb 100644
--- a/layouts/stream/list.html
+++ b/layouts/stream/list.html
@@ -12,6 +12,7 @@
<p>this page is paginated</p>
{{ else }}
<p>this page is NOT paginated</p>
+ {{ $.Scratch.Set "imgpath" "img/" }}
{{ end }}
<div style="margin-bottom: 1em;">