💄 ⚡ optimization CDN vendors display & import generate site speed.
This commit is contained in:
@@ -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 }};
|
||||
|
||||
Reference in New Issue
Block a user