summaryrefslogtreecommitdiffstats
path: root/_build/themes/ninenines/layouts/shortcodes
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2016-03-28 15:36:42 +0200
committerLoïc Hoguin <[email protected]>2016-03-28 15:36:42 +0200
commitfe3492a98de29942477b061cd02c92246f4bf85a (patch)
tree2255b796a657e6e4dfb72beec1141258d17f1220 /_build/themes/ninenines/layouts/shortcodes
downloadninenines.eu-fe3492a98de29942477b061cd02c92246f4bf85a.tar.gz
ninenines.eu-fe3492a98de29942477b061cd02c92246f4bf85a.tar.bz2
ninenines.eu-fe3492a98de29942477b061cd02c92246f4bf85a.zip
Initial commit, new website system
Diffstat (limited to '_build/themes/ninenines/layouts/shortcodes')
-rw-r--r--_build/themes/ninenines/layouts/shortcodes/fluid_img.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/_build/themes/ninenines/layouts/shortcodes/fluid_img.html b/_build/themes/ninenines/layouts/shortcodes/fluid_img.html
new file mode 100644
index 00000000..6930dd95
--- /dev/null
+++ b/_build/themes/ninenines/layouts/shortcodes/fluid_img.html
@@ -0,0 +1,7 @@
+{{ if .IsNamedParams }}
+<div class="{{ if .Get "class" }}{{ .Get "class" }}{{ else }}pure-u-1{{ end }}">
+ <img class="pure-img" src="{{ .Get "src" }}" {{ if or (.Get "alt") (.Get "caption") }}alt="{{ with .Get "alt"}}{{.}}{{else}}{{ .Get "caption" }}{{ end }}"{{ end }}>
+</div>
+{{ else }}
+<img class="pure-img" src="{{ index .Params 0 }}" alt="">
+{{ end }} \ No newline at end of file