Use dynamic function load analytic scripts avoid affecting the execution of page functions.

This commit is contained in:
凡梦星尘
2022-07-20 09:03:11 +08:00
parent 81cff8a5c2
commit ad271c1c20
3 changed files with 22 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
{{ $ctx := . }}
{{- with .Site.Params.analytics }}
{{- if isset . "laid" }}
{{ partial "_thirdparty/analytics/51la.html" .laId }}
{{ partial "_thirdparty/analytics/51la.html" (dict "ctx" $ctx "id" .laId) }}
{{- end }}
{{- end }}