Remove trim blank charsets flag to improve speed.

This commit is contained in:
凡梦星尘
2023-01-01 21:12:58 +08:00
parent d0a6d943e0
commit a2f37c8470
55 changed files with 494 additions and 496 deletions

View File

@@ -1,12 +1,12 @@
{{- with .Site.Params.followMe }}
{{ with .Site.Params.followMe }}
<div class="followme">
<span>{{ T "PostFollowMe" }}</span>
<div class="social-list">
{{ range . }}
{{- $vals := split . "||" }}
{{- $name := trim (index $vals 0) " " }}
{{- $url := trim (index $vals 1) " " }}
{{- $icon := trim (index $vals 2) " " }}
{{ $vals := split . "||" }}
{{ $name := trim (index $vals 0) " " }}
{{ $url := trim (index $vals 1) " " }}
{{ $icon := trim (index $vals 2) " " }}
<div class="social-item">
<a target="_blank" class="social-link" href="{{ $url }}">
<span class="icon">
@@ -15,7 +15,7 @@
<span class="label">{{ $name }}</span>
</a>
</div>
{{- end }}
{{ end }}
</div>
</div>
{{- end }}
{{ end }}