Commit 8897113 1 parent e91d3cf commit 8897113 Copy full SHA for 8897113
File tree 1 file changed +4
-0
lines changed
tpl/tplimpl/embedded/templates/shortcodes
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 9
9
@param {string} [class] The class attribute of the img element.
10
10
@param {string} [id] The id attribute of the img element.
11
11
@param {string} [title] The title attribute of the img element.
12
+ @param {string} [loading] The loading attribute of the img element, one of lazy, or eager.
12
13
13
14
@returns {template.HTML}
14
15
46
47
{{- $class := or (.Get "class") "" }}
47
48
{{- $id := or (.Get "id") "" }}
48
49
{{- $title := or (.Get "title") "" }}
50
+ {{- $loading := or (.Get "loading") "" }}
51
+
49
52
50
53
{{- /* Validate arguments. */}}
51
54
{{- $errors := false}}
71
74
{{- with $class }} class ="{{ $class }} " {{- end }}
72
75
{{- with $id }} id ="{{ $id }} " {{- end }}
73
76
{{- with $title }} title ="{{ $title }} " {{- end -}}
77
+ {{- with $loading }} loading ="{{ $loading }} " {{- end -}}
74
78
>
75
79
{{- end }}
76
80
{{- end -}}
You can’t perform that action at this time.
0 commit comments