Add smallimg shortcode for adding images that arent the full size
This commit is contained in:
11
layouts/shortcodes/smallimg.html
Normal file
11
layouts/shortcodes/smallimg.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<img src="{{ index .Params "src" }}"
|
||||
{{- if isset .Params "alt" }} alt="{{ index .Params "alt"}}" {{ end -}}
|
||||
class="small-img {{ if isset .Params "smartfloat" -}}
|
||||
{{- if eq .Params.smartfloat "left" -}}
|
||||
smartfloat-left
|
||||
{{- else if eq .Params.smartfloat "right" -}}
|
||||
smartfloat-right
|
||||
{{- end -}}
|
||||
{{- end }}"
|
||||
{{- if isset .Params "width" }} style="width: {{ index .Params "width" }};" {{- end -}}
|
||||
/>
|
||||
Reference in New Issue
Block a user