added 更新一篇文章
This commit is contained in:
1 parent
adb955d8b2
commit
b05323f84b
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">
|
||||
Reference in new issue
Block a user