diff options
author | Paul <paul@brainspark.nl> | 2020-04-07 11:39:40 +0300 |
---|---|---|
committer | Paul <paul@brainspark.nl> | 2020-04-07 11:44:43 +0300 |
commit | ca78f13c872ffc7a6dbbd2ede26fb7a50d8d6754 (patch) | |
tree | 8147bbb87520564c7b0a46badb273b891924a956 | |
parent | dd90dc5376da72e0e299731a4531940bc26f1014 (diff) |
Introduct imgstyle argument for figure shortcode
-rw-r--r-- | layouts/shortcodes/figure.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html index 79d15d9..c68b7d2 100644 --- a/layouts/shortcodes/figure.html +++ b/layouts/shortcodes/figure.html @@ -1,7 +1,7 @@ <!-- image --> <figure class="figure {{with .Get "class" }}{{.}}{{ end }}"> {{ if .Get "link"}}<a href="{{ .Get "link" }}"{{ with .Get "target" }} target="{{ . }}"{{ end }}{{ with .Get "rel" }} rel="{{ . }}"{{ end }}>{{ end }} - <img src="{{ .Get "src" }}" class="figure-img {{ with .Get "imgclass" }}{{.}}{{ end }}" {{ if or (.Get "alt") (.Get "caption") }}alt="{{ with .Get "alt"}}{{.}}{{else}}{{ .Get "caption" }}{{ end }}" {{ end }}{{with .Get "title"}}title="{{.}}" {{end}}{{ with .Get "width" }}width="{{.}}" {{ end }}{{ with .Get "height" }}height="{{.}}" {{ end }}/> + <img src="{{ .Get "src" }}" class="figure-img {{ with .Get "imgclass" }}{{.}}{{ end }}" {{ with .Get "imgstyle" }}style="{{.}}"{{ end }}{{ if or (.Get "alt") (.Get "caption") }}alt="{{ with .Get "alt"}}{{.}}{{else}}{{ .Get "caption" }}{{ end }}" {{ end }}{{with .Get "title"}}title="{{.}}" {{end}}{{ with .Get "width" }}width="{{.}}" {{ end }}{{ with .Get "height" }}height="{{.}}" {{ end }}/> {{- if .Get "link"}}</a>{{ end }} {{- if or (or (.Get "caption-title") (.Get "caption")) (.Get "attr")}} <figcaption class="figure-caption text-right">{{- if isset .Params "caption-title" }} |