summaryrefslogtreecommitdiff
path: root/layouts/shortcodes
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r--layouts/shortcodes/svg-full-width.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/layouts/shortcodes/svg-full-width.html b/layouts/shortcodes/svg-full-width.html
new file mode 100644
index 0000000..4c604ab
--- /dev/null
+++ b/layouts/shortcodes/svg-full-width.html
@@ -0,0 +1,20 @@
+{{- $file := .Get 0 }}
+{{- $path := printf "content_images/%s" $file}}
+{{- $img := resources.Get $path }}
+{{- $caption := .Get 1 }}
+{{- $source := .Get 2 }}
+<figure class="graph">
+ <img
+ class="center"
+ alt="{{ $caption }}"
+ src="{{ $img.RelPermalink }}"
+
+ >
+ <figcaption>
+ {{ $caption }}
+
+ {{- if $source }}
+ <a href="{{ $source }}" target="_blank" title="source">[source]</a>
+ {{ end }}
+ </figcaption>
+</figure>