💄 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

@@ -23,6 +23,15 @@ $footer_icon_color : {{ $P.footer.icon.color }};
$footer_icon_animated : {{ $P.footer.icon.animated }};
$footer_beian_enable : {{ $P.footer.beian.enable }};
$footer_vendors_enable : {{ isset $P.footer "vendors" }};
{{ with $P.footer.vendors }}
{{ $width := slice "start" }}
{{ range .list }}
{{ if .image }}
{{ $width = $width | append .image.width }}
{{ end }}
{{ end }}
{{ printf "$footer_vendors_imgs_width:%s;" (delimit (after 1 $width) ", ") }}
{{ end }}
// Counter
$busuanzi_enable : {{ $P.busuanzi.enable }};