diff options
Diffstat (limited to 'layouts/shortcodes/img-style.html')
-rw-r--r-- | layouts/shortcodes/img-style.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/shortcodes/img-style.html b/layouts/shortcodes/img-style.html new file mode 100644 index 0000000..4f0dd7d --- /dev/null +++ b/layouts/shortcodes/img-style.html @@ -0,0 +1,5 @@ +{{- $size := cond $.IsNamedParams ($.Get "size") "" | default "" -}} +{{- $position := cond $.IsNamedParams ($.Get "position") "" | default "center" -}} +<div class="img-style {{ with $position }}img-{{ . }}{{ end }} {{ if ($.Get `frame`) }}img-frame{{ end }} {{ with $size }}img-size-{{ . }}{{ end }} {{ if ($.Get `right`) }}img-right{{ end }}"> + {{ .Inner }} +</div>
\ No newline at end of file |