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:
authoruPagge <git@upagge.ru>2021-06-20 21:53:50 +0300
committeruPagge <git@upagge.ru>2021-06-20 21:53:50 +0300
commit74553b84f20a64d58ef1e6fe3dccea91a3ce62f8 (patch)
tree93a3b52c4600edda448f02c678a9fd61f5c87726 /layouts
parent0d93d9444efac87d5590d4d8add96729a95bf2be (diff)
fix css
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>