|  | 
| 42 | 42 |         {{ if and (.Site.Params.docsearch.appID) (.Site.Params.docsearch.apiKey) -}} | 
| 43 | 43 |         {{ else }} | 
| 44 | 44 |             {{ $flexSearch := resources.Get (printf "/%s/%s" ($.Scratch.Get "pathName") "js/flexsearch.bundle.js") }} | 
| 45 |  | -            {{- if not .Site.IsServer }} | 
|  | 45 | +            {{- if not hugo.IsServer }} | 
| 46 | 46 |                 {{ $flexSearch := $flexSearch | minify | fingerprint "sha384" }} | 
| 47 | 47 |                 <script type="text/javascript" src="{{ $flexSearch.Permalink }}" integrity="{{ $flexSearch.Data.Integrity }}" crossorigin="anonymous"></script> | 
| 48 | 48 |                 {{ else }} | 
|  | 
| 58 | 58 |         {{- $options := dict "enableSourceMap" false "outputStyle" "compressed" }} | 
| 59 | 59 |     {{- end }} | 
| 60 | 60 |     {{- $style := resources.Get (printf "/%s/%s" ($.Scratch.Get "pathName") "scss/style.scss") }} | 
| 61 |  | -    {{- $style = $style | resources.ExecuteAsTemplate (printf "/%s/%s" ($.Scratch.Get "pathName") "scss/style.scss") . | resources.ToCSS $options }} | 
|  | 61 | +    {{- $style = $style | resources.ExecuteAsTemplate (printf "/%s/%s" ($.Scratch.Get "pathName") "scss/style.scss") . | css.Sass $options }} | 
| 62 | 62 |     {{- if hugo.IsProduction }} | 
| 63 | 63 |         {{- $style = $style | minify | fingerprint "sha384" }} | 
| 64 | 64 |     {{- end -}} | 
|  | 
| 70 | 70 |         {{- $options := dict "enableSourceMap" false "outputStyle" "compressed" }} | 
| 71 | 71 |     {{- end -}} | 
| 72 | 72 |     {{- $katexCSS := resources.Get (printf "/%s/%s" ($.Scratch.Get "pathName") "scss/katex.scss") }} | 
| 73 |  | -    {{- $katexCSS = $katexCSS | resources.ExecuteAsTemplate (printf "/%s/%s" ($.Scratch.Get "pathName") "scss/katex.scss") . | resources.ToCSS $options }} | 
|  | 73 | +    {{- $katexCSS = $katexCSS | resources.ExecuteAsTemplate (printf "/%s/%s" ($.Scratch.Get "pathName") "scss/katex.scss") . | css.Sass $options }} | 
| 74 | 74 |     {{- if hugo.IsProduction }} | 
| 75 | 75 |         {{- $katexCSS = $katexCSS | minify | fingerprint "sha384" }} | 
| 76 | 76 |     {{- end -}} | 
|  | 
| 93 | 93 |         {{- partialCached (printf "%s/%s" ($.Scratch.Get "pathName") "footer/katex.html") . -}} | 
| 94 | 94 |     {{ end }} | 
| 95 | 95 |     <!-- Plausible Analytics Config --> | 
| 96 |  | -    {{- if not .Site.IsServer }} | 
|  | 96 | +    {{- if not hugo.IsServer }} | 
| 97 | 97 |     {{ if and (.Site.Params.plausible.scriptURL | default "https://plausible.io") (.Site.Params.plausible.dataDomain) -}} | 
| 98 | 98 |         {{- partialCached (printf "%s/%s" ($.Scratch.Get "pathName") "head/plausible") . }} | 
| 99 | 99 |     {{- end -}} | 
| 100 | 100 |     {{- end -}} | 
| 101 | 101 |     <!-- Google Analytics v4 Config --> | 
| 102 |  | -    {{- if not .Site.IsServer }} | 
|  | 102 | +    {{- if not hugo.IsServer }} | 
| 103 | 103 |     {{- if .Site.GoogleAnalytics }} | 
| 104 | 104 |         {{- template "_internal/google_analytics.html" . -}} | 
| 105 | 105 |     {{- end -}} | 
|  | 
0 commit comments