{{- if .Site.Params.publicCDN.enable }} {{ .Site.Params.publicCDN.jquery | safeHTML }} {{ .Site.Params.publicCDN.slideout | safeHTML }} {{ if .Site.Params.fancybox }}{{ .Site.Params.publicCDN.fancyboxJs | safeHTML }}{{ end }} {{- else -}} {{ if .Site.Params.fancybox }}{{ end }} {{- end -}} {{- if and (or .Params.enableOutdatedInfoWarning (and .Site.Params.outdatedInfoWarning.enable (ne .Params.enableOutdatedInfoWarning false))) (or .IsPage .IsHome) }} {{- if .Site.Params.publicCDN.enable }} {{ .Site.Params.publicCDN.timeagoJS | safeHTML }} {{ .Site.Params.publicCDN.timeagoLocalesJS | safeHTML }} {{- else }} {{- end }} {{- end }} {{- if and (or .Params.flowchartDiagrams.enable (and .Site.Params.flowchartDiagrams.enable (ne .Params.flowchartDiagrams.enable false))) (or .IsPage .IsHome) -}} {{- if .Site.Params.publicCDN.enable -}} {{ .Site.Params.publicCDN.flowchartDiagrams | safeHTML }} {{- else -}} {{- end -}} {{- end -}} {{- if and (or .Params.sequenceDiagrams.enable (and .Site.Params.sequenceDiagrams.enable (ne .Params.sequenceDiagrams.enable false))) (or .IsPage .IsHome) -}} {{- if .Site.Params.publicCDN.enable -}} {{ .Site.Params.publicCDN.sequenceDiagramsJS | safeHTML }} {{ .Site.Params.publicCDN.sequenceDiagramsCSS | safeHTML }} {{- else -}} {{- end -}} {{- end }} {{- if and (or .Params.mathjax (and .Site.Params.mathjax (ne .Params.mathjax false))) (or .IsPage .IsHome) }} {{ if .Site.Params.mathjaxUseLocalFiles -}} {{- else -}} {{- end }} {{- end }} {{- if .Site.GoogleAnalytics -}} {{ template "_internal/google_analytics_async.html" . }} {{- end -}} {{- with .Site.Params.baidu_analytics -}} {{- end }} {{- if .Site.Params.baidu_push -}} {{- end }} {{ range .Site.Params.customJS }} {{ end }}