Add _path suffix to paige.bootstrap params

master
Will Faught 3 years ago
parent d77586ad7d
commit ed796f3cac

@ -185,9 +185,9 @@ paige:
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
icons_path: "/my-assets/my-bootstrap-icons.css" # Use local Bootstrap icons
scripts_path: "/my-assets/my-bootstrap.bundle.min.js" # Use local Bootstrap scripts
styles_path: "/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_path }}
<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_path }}
<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_path }}
<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