Add MACRO lazy_load

Macro which allows programatically setting the HTML5 img
loading attribute.
This commit is contained in:
Roan Horning 2023-03-13 23:03:15 -04:00
parent ce4aefe828
commit 5b4421071f
Signed by untrusted user: rho_n
GPG Key ID: 234AEF20B72D5769

View File

@ -1,3 +1,6 @@
<!--% MACRO lazy_load(is_lazy) BLOCK %-->
<!--% IF is_lazy %-->loading="lazy"<!--% END %-->
<!--% END %-->
<!--% MACRO get_avatar_src(host_id) BLOCK %--> <!--% MACRO get_avatar_src(host_id) BLOCK %-->
<!--% TRY %--> <!--% TRY %-->
<!--% USE File ("./public_html/images/hosts/${host_id}.png") %-->hosts/<!--% File.name %--> <!--% USE File ("./public_html/images/hosts/${host_id}.png") %-->hosts/<!--% File.name %-->