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