{{- $page := .page }} {{- with $page }} {{- $init := "{}" }} {{- if isset .Params "mathjaxinitialize" }} {{- $init = .Params.mathJaxInitialize }} {{- else if isset .Site.Params "mathjaxinitialize" }} {{- $init = .Site.Params.mathJaxInitialize }} {{- end }} {{- if isset .Params "custommathjaxurl" }} {{- else if isset .Site.Params "custommathjaxurl" }} {{- else }} {{- end }} {{- end }}