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