feat: Lazy load image in all places

This commit is contained in:
Tomy Hsieh
2023-05-27 05:26:57 +08:00
parent 159aaae1e5
commit adf7f6f224
8 changed files with 9 additions and 2 deletions
+1
View File
@@ -11,6 +11,7 @@
<img
class="mx-auto my-0 rounded-md"
alt="{{ $altText }}"
loading="lazy"
{{ if findRE "^https?" $url.Scheme }}
src="{{ $url.String }}"
{{ else }}