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

img-style.html « shortcodes « layouts - github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5be8b6f71c6c16b3ea1cb47c3c2e716c28d069eb (plain)
1
2
3
4
5
6
{{- $size := cond $.IsNamedParams ($.Get "size") "" | default "" -}}
{{- $position := cond $.IsNamedParams ($.Get "position") "" | default "center" -}}
{{- $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>