{{- $page := .page }} {{- $location := .location }} {{- if eq $location "footer" }} {{- with $page }} {{- $assetBusting := partialCached "assetbusting.gotmpl" . }} {{- $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 }} {{- with resources.Get "/js/mathjax/tex-mml-chtml.js" }} {{- end }} {{- range resources.Match "/js/mathjax/**" }} {{- /* the following code causes Hugo to generate our file in public */}} {{- $url := .RelPermalink }} {{- end }} {{- end }} {{- end }} {{- end }}