💄 optimization CDN vendors display & import generate site speed.

This commit is contained in:
凡梦星尘
2022-06-21 09:19:12 +08:00
parent c116aa31ad
commit 9a83558e01
8 changed files with 67 additions and 42 deletions

View File

@@ -93,9 +93,8 @@
<div class="vendors-list">
{{- range .list }}
<a target="_blank" href="{{ .link }}" title="{{ .name }}">
{{- if .img }}
{{ $img := split .img "||" }}
<img src="{{- trim (index $img 0) " " }}" width="{{- trim (index $img 1) " " -}}px" alt="{{ .name }}" />
{{- if .image }}
<img src="{{ .image.url }}" alt="{{ .name }}" />
{{- else }}
{{ .name }}
{{- end }}