Use lazy loading image function & add image viewer. Close #65

This commit is contained in:
凡梦星尘
2022-10-29 22:37:41 +08:00
parent fa414e827a
commit 08156f22b8
10 changed files with 48 additions and 5 deletions

View File

@@ -11,7 +11,7 @@
{{- $pay := replace $name $fw ($fw | upper) 1 }}
{{- $payName := T (printf "Reward%s" $pay) }}
<div class="post-reward-item">
<img src="{{ $img }}" alt="{{ $.Site.Params.author }} - {{ $payName }}">
<img src="/imgs/img-lazy-loading.gif" data-src="{{ $img }}" alt="{{ $.Site.Params.author }} - {{ $payName }}">
<span>{{ $payName }}</span>
</div>
{{- end }}