Add MACRO lazy_load
Macro which allows programatically setting the HTML5 img loading attribute.
This commit is contained in:
parent
ce4aefe828
commit
5b4421071f
@ -1,3 +1,6 @@
|
||||
<!--% MACRO lazy_load(is_lazy) BLOCK %-->
|
||||
<!--% IF is_lazy %-->loading="lazy"<!--% END %-->
|
||||
<!--% END %-->
|
||||
<!--% MACRO get_avatar_src(host_id) BLOCK %-->
|
||||
<!--% TRY %-->
|
||||
<!--% USE File ("./public_html/images/hosts/${host_id}.png") %-->hosts/<!--% File.name %-->
|
||||
|
Reference in New Issue
Block a user