diff options
Diffstat (limited to 'layouts/shortcodes/img.html')
| -rw-r--r-- | layouts/shortcodes/img.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html index 3d2b03f..4978358 100644 --- a/layouts/shortcodes/img.html +++ b/layouts/shortcodes/img.html @@ -1 +1,5 @@ -<img src="{{ .Get "src" }}" {{- with .Get "alt" }} alt="{{.}}"{{ end }} {{- with .Get "width" }} width="{{.}}"{{ end }} {{- with .Get "height" }} height="{{.}}"{{ end }} {{- with .Get "class" }} class="{{.}}"{{ end }}> +<img src="{{ .Get "src" }}" + {{- with .Get "alt" }} alt="{{ . }}"{{ end }} + {{- with .Get "width" }} width="{{ . }}"{{ end }} + {{- with .Get "height" }} height="{{ . }}"{{ end }} + {{- with .Get "class" }} class="{{ . }}"{{ end }}> |
