added 更新一篇文章

This commit is contained in:
Vaica committed 2026-01-23 20:11:27 +08:00
1 parent 98f3c3ebf4
commit 8e7c6a1221
3 files changed
+68 -1

No files matched your search

@@ -1,2 +1,10 @@
{{ $src := .Destination | relURL }}
{{ $src := .Destination }}
{{- if not (strings.HasPrefix $src "http") -}}
{{- $img := .Page.Resources.GetMatch $src -}}
{{- if $img -}}
{{- $src = $img.RelPermalink -}}
{{- else -}}
{{- $src = $src | relURL -}}
{{- end -}}
{{- end -}}
<img data-lazy-src="{{ $src }}" alt="{{ .Text }}" class="lazyload">