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: 4f0dd7d40a70f5eb8964580a96ef4693bbc23fe6 (plain)
1
2
3
4
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>