Skip to content

Commit

Permalink
housekeeping: moved external js services into local files
Browse files Browse the repository at this point in the history
  • Loading branch information
AliceOrunitia committed Aug 27, 2024
1 parent 2fa236b commit da3590f
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 11 deletions.
3 changes: 0 additions & 3 deletions .cache/CHANGELOG-cached.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ type: docs
draft: true
---

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-Fy6S3B9q64WdZWQUiU+q4/2Lc9npb8tCaSX9FK7E8HnRr0Jz8D6OP9dO5Vg3Q9ct" crossorigin="anonymous"></script>

<div class="changelog-container card card-body">
<div class="h3 changelog-release">• unreleased / untagged</div>

Expand Down
7 changes: 7 additions & 0 deletions assets/js/bootstrap.bundle.min.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions assets/js/jquery-3-5-1-slim-min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions content/en/docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ linkTitle: "Changelog"
weight: 5
menu: false
type: docs
draft: true
---

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-Fy6S3B9q64WdZWQUiU+q4/2Lc9npb8tCaSX9FK7E8HnRr0Jz8D6OP9dO5Vg3Q9ct" crossorigin="anonymous"></script>


<div class="changelog-container card card-body">
<div class="h3 changelog-release">• unreleased / untagged</div>
Expand Down
4 changes: 0 additions & 4 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@
{{ template "_internal/schema.html" . -}}
{{ template "_internal/twitter_cards.html" . -}}
{{ partialCached "head-css.html" . "asdf" -}}
<script
src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK"
crossorigin="anonymous"></script>
{{ if .Site.Params.offlineSearch -}}
<script defer
src="https://unpkg.com/[email protected]/lunr.min.js"
Expand Down
7 changes: 6 additions & 1 deletion layouts/partials/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/mermaid.min.js" integrity="sha512-IX+bU+wShHqfqaMHLMrtwi4nK6W/Z+QdZoL4kPNtRxI2wCLyHPMAdl3a43Fv1Foqv4AP+aiW6hg1dcrTt3xc+Q==" crossorigin="anonymous"></script>
{{ end -}}

{{ $jsQuery := resources.Get "js/jquery-3-5-1-slim-min.js"}}
{{ $jsBootstrap := resources.Get "js/bootstrap.bundle.min.js"}}

<script src="{{ $jsQuery.RelPermalink }}"></script>
<script src="{{ $jsBootstrap.RelPermalink }}"></script>

{{ $js := $jsArray | resources.Concat "js/main.js" -}}
{{ if hugo.IsProduction -}}
{{ $js := $js | minify | fingerprint -}}
Expand All @@ -100,6 +106,5 @@
integrity="{{ . }}" {{ end -}}
crossorigin="anonymous"></script>
{{ end -}}

<script src='{{ "js/tabpane-persist.js" | relURL }}'></script>
{{ partial "hooks/body-end.html" . -}}
1 change: 0 additions & 1 deletion layouts/shortcodes/blocks/video-embed.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ <h6 class="mb-2 ps-3 text-muted">
</div>
</div>

<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script>
// Variables
const dataAccept = document.getElementById("data-accept");
Expand Down

0 comments on commit da3590f

Please sign in to comment.