Replace Bootstrap CDNs with locally-served Bootstrap
This commit is contained in:
parent
211cfcef65
commit
70e8d25d7f
2 changed files with 17 additions and 6 deletions
10
assets/node/package-lock.json
generated
10
assets/node/package-lock.json
generated
|
@ -7,6 +7,16 @@
|
||||||
"resolved": "https://npm.fontawesome.com/@fortawesome/fontawesome-pro/-/5.15.4/fontawesome-pro-5.15.4.tgz",
|
"resolved": "https://npm.fontawesome.com/@fortawesome/fontawesome-pro/-/5.15.4/fontawesome-pro-5.15.4.tgz",
|
||||||
"integrity": "sha512-ApOqpDdKgA79xfLZH3B5PucZxj+TZyQUSrZ4bKkbJCR+zjmveQ4/gp/uXc5bNNhsdtJUy16BYJ/lAVydca2Y5Q=="
|
"integrity": "sha512-ApOqpDdKgA79xfLZH3B5PucZxj+TZyQUSrZ4bKkbJCR+zjmveQ4/gp/uXc5bNNhsdtJUy16BYJ/lAVydca2Y5Q=="
|
||||||
},
|
},
|
||||||
|
"@popperjs/core": {
|
||||||
|
"version": "2.11.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.2.tgz",
|
||||||
|
"integrity": "sha512-92FRmppjjqz29VMJ2dn+xdyXZBrMlE42AV6Kq6BwjWV7CNUW1hs2FtxSNLQE+gJhaZ6AAmYuO9y8dshhcBl7vA=="
|
||||||
|
},
|
||||||
|
"bootstrap": {
|
||||||
|
"version": "5.1.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.1.3.tgz",
|
||||||
|
"integrity": "sha512-fcQztozJ8jToQWXxVuEyXWW+dSo8AiXWKwiSSrKWsRB/Qt+Ewwza+JWoLKiTuQLaEPhdNAJ7+Dosc9DOIqNy7Q=="
|
||||||
|
},
|
||||||
"jquery": {
|
"jquery": {
|
||||||
"version": "3.6.0",
|
"version": "3.6.0",
|
||||||
"resolved": "https://registry.npmjs.org/jquery/-/jquery-3.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/jquery/-/jquery-3.6.0.tgz",
|
||||||
|
|
|
@ -7,8 +7,10 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>{{ .Title }} - {{ .Site.Title }}</title>
|
<title>{{ .Title }} - {{ .Site.Title }}</title>
|
||||||
|
|
||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
|
{{ $twbscss := resources.Get "node/node_modules/bootstrap/scss/bootstrap.scss" | resources.ToCSS }}
|
||||||
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
|
{{ $allcss := slice $twbscss | resources.Concat "css/bundle.css" }}
|
||||||
|
{{ $allcsspure := $allcss | resources.PostCSS | minify | fingerprint | resources.PostProcess }}
|
||||||
|
<link href="{{ $allcsspure.Permalink }}" rel="stylesheet">
|
||||||
<style>
|
<style>
|
||||||
.blurred-container {
|
.blurred-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -222,11 +224,10 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ $jqueryjs := resources.Get "node/node_modules/jquery/dist/jquery.js" }}
|
{{ $jqueryjs := resources.Get "node/node_modules/jquery/dist/jquery.js" }}
|
||||||
{{ $alljs := slice $jqueryjs | resources.Concat "js/bundle.js" | resources.Minify }}
|
{{ $popperjs := resources.Get "node/node_modules/@popperjs/core/dist/umd/popper.js" }}
|
||||||
|
{{ $twbsjs := resources.Get "node/node_modules/bootstrap/dist/js/bootstrap.js" }}
|
||||||
|
{{ $alljs := slice $jqueryjs $popperjs $twbsjs | resources.Concat "js/bundle.js" | resources.Minify }}
|
||||||
<script src="{{ $alljs.Permalink }}"></script>
|
<script src="{{ $alljs.Permalink }}"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
|
|
||||||
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
|
|
||||||
crossorigin="anonymous"></script>
|
|
||||||
<script src="https://kit.fontawesome.com/019cc70ab4.js" crossorigin="anonymous"></script> <script src="https://wyoming4h.org/albany4h/record-book/script/parallax.min.js"></script>
|
<script src="https://kit.fontawesome.com/019cc70ab4.js" crossorigin="anonymous"></script> <script src="https://wyoming4h.org/albany4h/record-book/script/parallax.min.js"></script>
|
||||||
<script src="https://millironx.com/js/jquery.fittext.js"></script>
|
<script src="https://millironx.com/js/jquery.fittext.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
Loading…
Reference in a new issue