aboutsummaryrefslogtreecommitdiffstats
path: root/gemtext2html.awk
diff options
context:
space:
mode:
authorsejo <sejo@texto-plano.xyz>2021-05-19 20:38:59 -0500
committersejo <sejo@texto-plano.xyz>2021-05-19 20:38:59 -0500
commit684941ed388224912958788673e60079102029a2 (patch)
tree0baab6504dd32c8eb3d85ed3ca4e74ec928b6303 /gemtext2html.awk
parent7b00e930daafde8bdebd7d92a850c94ddc8ef955 (diff)
downloadsitio-684941ed388224912958788673e60079102029a2.tar.gz
loading lazy para imágenes
Diffstat (limited to 'gemtext2html.awk')
-rw-r--r--gemtext2html.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/gemtext2html.awk b/gemtext2html.awk
index b4e1db2..409de18 100644
--- a/gemtext2html.awk
+++ b/gemtext2html.awk
@@ -127,7 +127,7 @@ $0 !~ /^(=>|```|#{1,3} |* |>|[[:blank:]]*$)/{ # líneas de texto (no "especiales
# si el path es imagen
if( match($1, /(png|jpg|gif)$/) ){
# crea imagen <img>
- $0="<img src='"$1"' alt='"texto"'/>"
+ $0="<img src='"$1"' alt='"texto"' loading='lazy'/>"
}
# si el path no es imagen
else{
Un proyecto texto-plano.xyz