Move Bootstrap config to paige.bootstrap object

master
Will Faught 3 years ago
parent 7a3c03ba56
commit 024f30d8f5

@ -173,9 +173,6 @@ $ hugo server -D
Optional site parameters:
```yaml
paige_bootstrap_icons: "/my-assets/my-bootstrap-icons.css" # Use local Bootstrap icons
paige_bootstrap_scripts: "/my-assets/my-bootstrap.bundle.min.js" # Use local Bootstrap scripts
paige_bootstrap_styles: "/my-assets/my-bootstrap.min.css" # Use local Bootstrap styles
paige_date_format: "2006 January 2" # Hugo date format for page dates
paige_hide_theme_comment: true # Don't put a link to this project in a code comment
paige_hide_theme_link: true # Don't put a link to this project in the footer
@ -191,6 +188,10 @@ paige:
account_id: "123456"
yandex: # metrica.yandex.com
account_id: "123456"
bootstrap:
icons: "/my-assets/my-bootstrap-icons.css" # Use local Bootstrap icons
scripts: "/my-assets/my-bootstrap.bundle.min.js" # Use local Bootstrap scripts
styles: "/my-assets/my-bootstrap.min.css" # Use local Bootstrap styles
comments:
cactus: # cactus.chat
account_id: "123456"

@ -1,9 +1,9 @@
{{ with .Site.Params.paige_bootstrap_styles }}
{{ with .Site.Params.paige.bootstrap.styles }}
<link href="{{ relLangURL . }}" rel="stylesheet">
{{ else }}
<link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" rel="stylesheet">
{{ end }}
{{ with .Site.Params.paige_bootstrap_icons }}
{{ with .Site.Params.paige.bootstrap.icons }}
<link href="{{ relLangURL . }}" rel="stylesheet">
{{ else }}
<link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.2/font/bootstrap-icons.css" integrity="sha384-b6lVK+yci+bfDmaY1u0zE8YYJt0TZxLEAFyYSLHId4xoVvsrQu3INevFKo+Xir8e" rel="stylesheet">

@ -1,4 +1,4 @@
{{ with .Site.Params.paige_bootstrap_scripts }}
{{ with .Site.Params.paige.bootstrap.scripts }}
<script defer src="{{ relLangURL . }}"></script>
{{ else }}
<script crossorigin="anonymous" defer integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3" referrerpolicy="no-referrer" src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.bundle.min.js"></script>

Loading…
Cancel
Save