File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
tpl/tplimpl/embedded/templates/shortcodes Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 99@param {string} [class] The class attribute of the img element.
1010@param {string} [id] The id attribute of the img element.
1111@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.
1213
1314@returns {template.HTML}
1415
4647{{- $class := or (.Get "class") "" }}
4748{{- $id := or (.Get "id") "" }}
4849{{- $title := or (.Get "title") "" }}
50+ {{- $loading := or (.Get "loading") "" }}
51+
4952
5053{{- /* Validate arguments. */}}
5154{{- $errors := false}}
7174 {{- with $class }} class ="{{ $class }} " {{- end }}
7275 {{- with $id }} id ="{{ $id }} " {{- end }}
7376 {{- with $title }} title ="{{ $title }} " {{- end -}}
77+ {{- with $loading }} loading ="{{ $loading }} " {{- end -}}
7478 >
7579 {{- end }}
7680{{- end -}}
You can’t perform that action at this time.
0 commit comments