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

@@ -45,7 +45,7 @@
{{- range .list }}
<a target="_blank" href="{{ .link }}" title="{{ .name }}">
{{- if .image }}
<img src="{{ .image.url }}" alt="{{ .name }}" />
<img src="/imgs/img-lazy-loading.gif" data-src="{{ .image.url }}" alt="{{ .name }}" />
{{- else }}
{{ .name }}
{{- end }}