summaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/blog/cross-site-post.html21
-rw-r--r--layouts/partials/button-15.html3
-rw-r--r--layouts/partials/button-31.html3
3 files changed, 15 insertions, 12 deletions
diff --git a/layouts/partials/blog/cross-site-post.html b/layouts/partials/blog/cross-site-post.html
index 3a13af8..2a9f77b 100644
--- a/layouts/partials/blog/cross-site-post.html
+++ b/layouts/partials/blog/cross-site-post.html
@@ -16,15 +16,16 @@
{{- $img2x := $img.Resize "64x webp" }}
<div class="img">
<a href="{{ .Permalink }}"><img
- alt="Arrow"
- src="{{ $img1x.Permalink }}"
- srcset="
- {{ $img1x.Permalink }} 1x,
- {{ $img2x.Permalink }} 2x
- "
- width="{{ $img1x.Width }}"
- height="{{ $img1x.Height }}"
- ></a>
+ alt="Arrow"
+ loading="lazy"
+ src="{{ $img1x.Permalink }}"
+ srcset="
+ {{ $img1x.Permalink }} 1x,
+ {{ $img2x.Permalink }} 2x
+ "
+ width="{{ $img1x.Width }}"
+ height="{{ $img1x.Height }}"
+ ></a>
</div>
<div class="text">
<time datetime="{{.PublishDate.Format "2006-01-02" }}">
@@ -33,5 +34,5 @@
I published
<a href="{{ .Permalink }}">"{{ .Title }}"</a>
on {{ $section }}
- </div>
+ </div>
</article>
diff --git a/layouts/partials/button-15.html b/layouts/partials/button-15.html
index b715d2a..a155f05 100644
--- a/layouts/partials/button-15.html
+++ b/layouts/partials/button-15.html
@@ -5,7 +5,8 @@
{{- $img2x := $img.Resize "160x30 webp q90"}}
{{- if $.href }} <a href="{{ $.href }}"> {{ end }}
- <img
+ <img
+ loading="lazy"
class="webbutton"
alt="{{ $.alt }}"
src="{{ $img1x.Permalink }}"
diff --git a/layouts/partials/button-31.html b/layouts/partials/button-31.html
index 7349c88..305912a 100644
--- a/layouts/partials/button-31.html
+++ b/layouts/partials/button-31.html
@@ -5,7 +5,8 @@
{{- $img2x := $img.Resize "176x webp q90"}}
{{- if $.href }} <a href="{{ $.href }}"> {{ end }}
- <img
+ <img
+ loading="lazy"
class="webbutton"
alt="{{ $.alt }}"
src="{{ $img1x.Permalink }}"