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/shortcodes/img-style.html')
-rw-r--r--layouts/shortcodes/img-style.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/shortcodes/img-style.html b/layouts/shortcodes/img-style.html
new file mode 100644
index 0000000..4f0dd7d
--- /dev/null
+++ b/layouts/shortcodes/img-style.html
@@ -0,0 +1,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> \ No newline at end of file