Fix lazy image loading
This commit is contained in:
parent
c35eb6d11e
commit
28eb3655c3
1 changed files with 1 additions and 1 deletions
|
|
@ -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))]]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue