diff options
author | uPagge <git@upagge.ru> | 2021-06-20 21:53:50 +0300 |
---|---|---|
committer | uPagge <git@upagge.ru> | 2021-06-20 21:53:50 +0300 |
commit | 74553b84f20a64d58ef1e6fe3dccea91a3ce62f8 (patch) | |
tree | 93a3b52c4600edda448f02c678a9fd61f5c87726 /layouts | |
parent | 0d93d9444efac87d5590d4d8add96729a95bf2be (diff) |
fix css
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/shortcodes/img-style.html | 5 |
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> |