Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/shortcodes/img-style.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/layouts/shortcodes/img-style.html b/layouts/shortcodes/img-style.html
index 4f0dd7d..5be8b6f 100644
--- a/layouts/shortcodes/img-style.html
+++ b/layouts/shortcodes/img-style.html
@@ -1,5 +1,6 @@
{{- $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 }}">
+{{- $margin := cond $.IsNamedParams ($.Get "margin") "" | default "" -}}
+<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 }}" {{ with $margin }} style="margin:{{ . }}" {{ end }} >
{{ .Inner }}
-</div> \ No newline at end of file
+</div>