Skip to content

Commit

Permalink
remove integrity
Browse files Browse the repository at this point in the history
  • Loading branch information
ceceppa committed Sep 5, 2024
1 parent ee4f5db commit 6fa1c8e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
8 changes: 4 additions & 4 deletions docs/layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
{{- if hugo.IsProduction }}
{{- $style = $style | minify | fingerprint "sha384" }}
{{- end -}}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" {{ if hugo.IsProduction }}integrity="{{ $style.Data.Integrity }}"{{ end -}}/>
<link rel="stylesheet" href="{{ $style.RelPermalink }}" {{ if hugo.IsProduction }}{{ end -}}/>
<!-- Bootstrap JS -->
{{ $js := resources.Get "js/bootstrap.js" }}
{{ $params := dict }}
Expand All @@ -35,16 +35,16 @@
{{ if hugo.IsProduction }}
{{ $js = $js | fingerprint "sha384" }}
{{ end }}
<script src="{{ $js.RelPermalink }}" {{ if hugo.IsProduction }}integrity="{{ $js.Data.Integrity }}"{{ end -}} defer></script>
<script src="{{ $js.RelPermalink }}" {{ if hugo.IsProduction }}{{ end -}} defer></script>
<!-- Image Compare Viewer -->
{{ 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" }}
<script type="text/javascript" src="{{ $js.Permalink }}" integrity="{{ $js.Data.Integrity }}"></script>
<script type="text/javascript" src="{{ $js.Permalink }}" ></script>
{{- else }}
{{- $js := (slice $imagecompare) | resources.Concat "/js/image-compare.js" }}
<script type="text/javascript" src="{{ $js.Permalink }}" {{ if hugo.IsProduction }}integrity="{{ $js.Data.Integrity }}"{{ end }}></script>
<script type="text/javascript" src="{{ $js.Permalink }}"></script>
{{- end }}
{{- end }}
<!-- Plausible Analytics Config -->
Expand Down
4 changes: 2 additions & 2 deletions docs/themes/lotusdocs/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -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" }}
<script type="text/javascript" src="{{ $js.Permalink }}" integrity="{{ $js.Data.Integrity }}"></script>
<script type="text/javascript" src="{{ $js.Permalink }}"></script>
{{- else }}
{{- $js := (slice $app) | resources.Concat "/js/bundle.js" }}
<script type="text/javascript" src="{{ $js.Permalink }}" {{ if hugo.IsProduction }}integrity="{{ $js.Data.Integrity }}"{{ end }}></script>
<script type="text/javascript" src="{{ $js.Permalink }}"></script>
{{- end }}

<!-- Image Compare Viewer Config -->
Expand Down
2 changes: 1 addition & 1 deletion docs/themes/lotusdocs/layouts/docs/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{{ if hugo.IsProduction }}
{{ $mermaid = $mermaid | fingerprint "sha384" }}
{{ end }}
<script src="{{ $mermaid.RelPermalink }}" {{ if hugo.IsProduction }}integrity="{{ $mermaid.Data.Integrity }}"{{ end }}></script>
<script src="{{ $mermaid.RelPermalink }}"></script>
<script>
const config = {
startOnLoad:true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@
{{ if hugo.IsProduction }}
{{ $js = $js | fingerprint "sha384" }}
{{ end }}
<script src="{{ $js.RelPermalink }}" {{ if hugo.IsProduction }}integrity="{{ $js.Data.Integrity }}"{{ end -}} defer></script>
<script src="{{ $js.RelPermalink }}" defer></script>

{{ $js := $slice | resources.Concat (printf "/%s/%s" ($.Scratch.Get "pathName") "js/bundle.js") -}}

{{- if not hugo.IsServer }}
{{- $js := $js | minify | fingerprint "sha384" }}
<script type="text/javascript" src="{{ $js.Permalink }}" integrity="{{ $js.Data.Integrity }}" crossorigin="anonymous" defer></script>
<script type="text/javascript" src="{{ $js.Permalink }}" crossorigin="anonymous" defer></script>
{{- else }}
<script type="text/javascript" src="{{ $js.Permalink }}" defer></script>
{{- end }}
10 changes: 5 additions & 5 deletions docs/themes/lotusdocs/layouts/partials/docs/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -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" }}
<script type="text/javascript" src="{{ $flexSearch.Permalink }}" integrity="{{ $flexSearch.Data.Integrity }}" crossorigin="anonymous"></script>
<script type="text/javascript" src="{{ $flexSearch.Permalink }}" crossorigin="anonymous"></script>
{{ else }}
<script type="text/javascript" src="{{ $flexSearch.Permalink }}"></script>
{{ end }}
Expand All @@ -62,7 +62,7 @@
{{- if hugo.IsProduction }}
{{- $style = $style | minify | fingerprint "sha384" }}
{{- end -}}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" {{ if hugo.IsProduction }}integrity="{{ $style.Data.Integrity }}"{{ end -}} crossorigin="anonymous">
<link rel="stylesheet" href="{{ $style.RelPermalink }}" crossorigin="anonymous">
<!-- Katex CSS -->
{{- if .Params.katex -}}
{{- $options := dict "enableSourceMap" true }}
Expand All @@ -74,7 +74,7 @@
{{- if hugo.IsProduction }}
{{- $katexCSS = $katexCSS | minify | fingerprint "sha384" }}
{{- end -}}
<link rel="stylesheet" href="{{ $katexCSS.RelPermalink }}" {{ if hugo.IsProduction }}integrity="{{ $katexCSS.Data.Integrity }}"{{ end -}} crossorigin="anonymous">
<link rel="stylesheet" href="{{ $katexCSS.RelPermalink }}" crossorigin="anonymous">
{{- end -}}
<!-- Katex JS -->
{{- if .Params.katex -}}
Expand All @@ -84,8 +84,8 @@
{{ $katex = $katex | minify | fingerprint "sha384" }}
{{ $katexAutoRender = $katexAutoRender | minify | fingerprint "sha384" }}
{{- end -}}
<script src="{{ $katex.RelPermalink }}" {{ if hugo.IsProduction }}integrity="{{ $katex.Data.Integrity }}"{{ end -}} defer></script>
<script src="{{ $katexAutoRender.RelPermalink }}" {{ if hugo.IsProduction }}integrity="{{ $katexAutoRender.Data.Integrity }}"{{ end -}} defer></script>
<script src="{{ $katex.RelPermalink }}" defer></script>
<script src="{{ $katexAutoRender.RelPermalink }}" defer></script>
{{ end -}}

<!-- Katex Config -->
Expand Down
8 changes: 4 additions & 4 deletions docs/themes/lotusdocs/layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
{{- if hugo.IsProduction }}
{{- $style = $style | minify | fingerprint "sha384" }}
{{- end -}}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" {{ if hugo.IsProduction }}integrity="{{ $style.Data.Integrity }}"{{ end -}}/>
<link rel="stylesheet" href="{{ $style.RelPermalink }}"/>
<!-- Bootstrap JS -->
{{ $js := resources.Get "js/bootstrap.js" }}
{{ $params := dict }}
Expand All @@ -35,16 +35,16 @@
{{ if hugo.IsProduction }}
{{ $js = $js | fingerprint "sha384" }}
{{ end }}
<script src="{{ $js.RelPermalink }}" {{ if hugo.IsProduction }}integrity="{{ $js.Data.Integrity }}"{{ end -}} defer></script>
<script src="{{ $js.RelPermalink }}" defer></script>
<!-- Image Compare Viewer -->
{{ 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" }}
<script type="text/javascript" src="{{ $js.Permalink }}" integrity="{{ $js.Data.Integrity }}"></script>
<script type="text/javascript" src="{{ $js.Permalink }}" ></script>
{{- else }}
{{- $js := (slice $imagecompare) | resources.Concat "/js/image-compare.js" }}
<script type="text/javascript" src="{{ $js.Permalink }}" {{ if hugo.IsProduction }}integrity="{{ $js.Data.Integrity }}"{{ end }}></script>
<script type="text/javascript" src="{{ $js.Permalink }}" ></script>
{{- end }}
{{- end }}
<!-- Plausible Analytics Config -->
Expand Down

0 comments on commit 6fa1c8e

Please sign in to comment.