From 8d524fe1ac272afb76330e7d319641238fc254bb Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sun, 11 Dec 2022 17:50:24 -0800 Subject: [PATCH] Add Bootstrap overrides --- README.md | 4 +++- layouts/partials/paige_link.html | 8 ++++++++ layouts/partials/paige_script.html | 4 ++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 292f8cd1..312fad2b 100644 --- a/README.md +++ b/README.md @@ -99,7 +99,9 @@ true. To hide the theme comment, set the site parameter credit this project and its author in a post so others may find it. Bootstrap 5.2.2 CSS and JavaScript and Bootstrap Icons 1.10.2 are loaded -from the Bootstrap CDN for every page. +from the Bootstrap CDN for every page. To load local assets instead, set +the site parameters `paigebootstrapcss`, `paigebootstrapicons`, and +`paigebootstrapjs` to the asset paths. ## Configuration diff --git a/layouts/partials/paige_link.html b/layouts/partials/paige_link.html index a6070df4..b96ddbe3 100644 --- a/layouts/partials/paige_link.html +++ b/layouts/partials/paige_link.html @@ -1,5 +1,13 @@ +{{ if .Site.Params.paigebootstrapcss }} + +{{ else }} +{{ end }} +{{ if .Site.Params.paigebootstrapicons }} + +{{ else }} +{{ end }} {{ if or .Site.Params.math .Params.math }} {{ end }} diff --git a/layouts/partials/paige_script.html b/layouts/partials/paige_script.html index 11988f74..15b2230b 100644 --- a/layouts/partials/paige_script.html +++ b/layouts/partials/paige_script.html @@ -1,4 +1,8 @@ +{{ if .Site.Params.paigebootstrapjs }} + +{{ else }} +{{ end }} {{ if or .Site.Params.math .Params.math }}