diff --git a/docs/layouts/partials/head.html b/docs/layouts/partials/head.html index d3a5edf..a7826c4 100644 --- a/docs/layouts/partials/head.html +++ b/docs/layouts/partials/head.html @@ -25,7 +25,7 @@ {{- if hugo.IsProduction }} {{- $style = $style | minify | fingerprint "sha384" }} {{- end -}} - + {{ $js := resources.Get "js/bootstrap.js" }} {{ $params := dict }} @@ -35,16 +35,16 @@ {{ if hugo.IsProduction }} {{ $js = $js | fingerprint "sha384" }} {{ end }} - + {{ if ($.Scratch.Get "image_compare_enabled") }} {{ $imagecompare := resources.Get "js/image-compare-viewer.min.js" }} {{- if not hugo.IsServer }} {{- $js := (slice $imagecompare) | resources.Concat "/js/image-compare.js" | minify | fingerprint "sha384" }} - + {{- else }} {{- $js := (slice $imagecompare) | resources.Concat "/js/image-compare.js" }} - + {{- end }} {{- end }} diff --git a/docs/themes/lotusdocs/layouts/_default/baseof.html b/docs/themes/lotusdocs/layouts/_default/baseof.html index 72e6978..d2ad6f6 100644 --- a/docs/themes/lotusdocs/layouts/_default/baseof.html +++ b/docs/themes/lotusdocs/layouts/_default/baseof.html @@ -42,10 +42,10 @@ {{ $app := resources.Get "/js/app.js" }} {{- if not hugo.IsServer }} {{- $js := (slice $app) | resources.Concat "/js/bundle.js" | minify | fingerprint "sha384" }} - + {{- else }} {{- $js := (slice $app) | resources.Concat "/js/bundle.js" }} - + {{- end }} diff --git a/docs/themes/lotusdocs/layouts/docs/single.html b/docs/themes/lotusdocs/layouts/docs/single.html index 3a0aef4..25848d8 100644 --- a/docs/themes/lotusdocs/layouts/docs/single.html +++ b/docs/themes/lotusdocs/layouts/docs/single.html @@ -14,7 +14,7 @@ {{ if hugo.IsProduction }} {{ $mermaid = $mermaid | fingerprint "sha384" }} {{ end }} - + + {{ $js := $slice | resources.Concat (printf "/%s/%s" ($.Scratch.Get "pathName") "js/bundle.js") -}} {{- if not hugo.IsServer }} {{- $js := $js | minify | fingerprint "sha384" }} - + {{- else }} {{- end }} diff --git a/docs/themes/lotusdocs/layouts/partials/docs/head.html b/docs/themes/lotusdocs/layouts/partials/docs/head.html index 46a2eec..824dbb3 100644 --- a/docs/themes/lotusdocs/layouts/partials/docs/head.html +++ b/docs/themes/lotusdocs/layouts/partials/docs/head.html @@ -44,7 +44,7 @@ {{ $flexSearch := resources.Get (printf "/%s/%s" ($.Scratch.Get "pathName") "js/flexsearch.bundle.js") }} {{- if not hugo.IsServer }} {{ $flexSearch := $flexSearch | minify | fingerprint "sha384" }} - + {{ else }} {{ end }} @@ -62,7 +62,7 @@ {{- if hugo.IsProduction }} {{- $style = $style | minify | fingerprint "sha384" }} {{- end -}} - + {{- if .Params.katex -}} {{- $options := dict "enableSourceMap" true }} @@ -74,7 +74,7 @@ {{- if hugo.IsProduction }} {{- $katexCSS = $katexCSS | minify | fingerprint "sha384" }} {{- end -}} - + {{- end -}} {{- if .Params.katex -}} @@ -84,8 +84,8 @@ {{ $katex = $katex | minify | fingerprint "sha384" }} {{ $katexAutoRender = $katexAutoRender | minify | fingerprint "sha384" }} {{- end -}} - - + + {{ end -}} diff --git a/docs/themes/lotusdocs/layouts/partials/head.html b/docs/themes/lotusdocs/layouts/partials/head.html index 7e939c0..117b1f3 100644 --- a/docs/themes/lotusdocs/layouts/partials/head.html +++ b/docs/themes/lotusdocs/layouts/partials/head.html @@ -25,7 +25,7 @@ {{- if hugo.IsProduction }} {{- $style = $style | minify | fingerprint "sha384" }} {{- end -}} - + {{ $js := resources.Get "js/bootstrap.js" }} {{ $params := dict }} @@ -35,16 +35,16 @@ {{ if hugo.IsProduction }} {{ $js = $js | fingerprint "sha384" }} {{ end }} - + {{ if ($.Scratch.Get "image_compare_enabled") }} {{ $imagecompare := resources.Get "js/image-compare-viewer.min.js" }} {{- if not hugo.IsServer }} {{- $js := (slice $imagecompare) | resources.Concat "/js/image-compare.js" | minify | fingerprint "sha384" }} - + {{- else }} {{- $js := (slice $imagecompare) | resources.Concat "/js/image-compare.js" }} - + {{- end }} {{- end }}