Fix lazy image loading

This commit is contained in:
arne 2025-11-21 09:12:55 +01:00
commit 28eb3655c3

View file

@ -357,7 +357,7 @@
"image" [:img {:src preview-url "image" [:img {:src preview-url
:srcset (str preview-url ", " remote-url) :srcset (str preview-url ", " remote-url)
:alt (:description attachment) :alt (:description attachment)
:lazy "lazy"}] :loading "lazy"}]
"video" [:video {:controls true} "video" [:video {:controls true}
[:source {:type (str "video/" ext) :src remote-url}] [:source {:type (str "video/" ext) :src remote-url}]
[:a {:href (:remote_url attachment)} (str "Original video at " (:remote_url attachment))]] [:a {:href (:remote_url attachment)} (str "Original video at " (:remote_url attachment))]]