diff --git a/README.md b/README.md index 5ca28d89..dc07e53f 100644 --- a/README.md +++ b/README.md @@ -285,12 +285,12 @@ module: includeFiles: ["/bootstrap-icons.css"] # Katex - source: "node_modules/katex/contrib/auto-render" - target: "assets/paige/katex" + target: "assets/_paige/katex" includeFiles: ["/auto-render.js"] - source: "node_modules/katex/dist/fonts" - target: "static/paige/katex/fonts" + target: "static/_paige/katex/fonts" - source: "node_modules/katex/dist" - target: "assets/paige/katex" + target: "assets/_paige/katex" includeFiles: ["/katex.css", "/katex.js"] ``` @@ -959,7 +959,8 @@ The following NPM packages are used: - [bootstrap-icons](https://www.npmjs.com/package/bootstrap-icons/v/1.10.3) - [katex](https://www.npmjs.com/package/katex/v/0.16.4) -Hugo names, HTML names, CSS names, and JavaScript names that begin with "paige" capitalized in any way are reserved. +Hugo names, HTML names, CSS names, and JavaScript names that begin with "paige" capitalized in any way, +optionally prefixed with one or more underscores, are reserved. ## Credits diff --git a/assets/paige/bootstrap/paige.scss b/assets/_paige/bootstrap/paige.scss similarity index 100% rename from assets/paige/bootstrap/paige.scss rename to assets/_paige/bootstrap/paige.scss diff --git a/config.yaml b/config.yaml index 864989d5..95e8cf6a 100644 --- a/config.yaml +++ b/config.yaml @@ -20,27 +20,27 @@ module: target: "static" # Bootstrap - source: "node_modules/bootstrap/dist/css" - target: "assets/paige/bootstrap" + target: "assets/_paige/bootstrap" includeFiles: ["/bootstrap.css"] - source: "node_modules/bootstrap/dist/js" - target: "assets/paige/bootstrap" + target: "assets/_paige/bootstrap" includeFiles: ["/bootstrap.bundle.js"] - source: "node_modules/bootstrap/js/dist" - target: "static/paige/bootstrap" + target: "static/_paige/bootstrap" - source: "node_modules/bootstrap/scss" - target: "assets/paige/bootstrap" + target: "assets/_paige/bootstrap" # Bootstrap Icons - source: "node_modules/bootstrap-icons/font/fonts" - target: "static/paige/bootstrap-icons/fonts" + target: "static/_paige/bootstrap-icons/fonts" - source: "node_modules/bootstrap-icons/font" - target: "assets/paige/bootstrap-icons" + target: "assets/_paige/bootstrap-icons" includeFiles: ["/bootstrap-icons.css"] # Katex - source: "node_modules/katex/contrib/auto-render" - target: "assets/paige/katex" + target: "assets/_paige/katex" includeFiles: ["/auto-render.js"] - source: "node_modules/katex/dist/fonts" - target: "static/paige/katex/fonts" + target: "static/_paige/katex/fonts" - source: "node_modules/katex/dist" - target: "assets/paige/katex" + target: "assets/_paige/katex" includeFiles: ["/katex.css", "/katex.js"] diff --git a/layouts/partials/paige/links.html b/layouts/partials/paige/links.html index f2527831..62145c28 100644 --- a/layouts/partials/paige/links.html +++ b/layouts/partials/paige/links.html @@ -13,8 +13,8 @@ -{{ partial "paige/link.html" (dict "href" "paige/bootstrap/paige.scss" "page" $page "sass" true) }} -{{ partial "paige/link.html" (dict "href" "paige/bootstrap-icons/bootstrap-icons.css") }} +{{ partial "paige/link.html" (dict "href" "_paige/bootstrap/paige.scss" "page" $page "sass" true) }} +{{ partial "paige/link.html" (dict "href" "_paige/bootstrap-icons/bootstrap-icons.css") }} {{ if or ($page.Param "paige.math") (and ($page.Param "paige.section_pages.full_pages") (where $page.Pages "Params.paige.math" "eq" true)) }} {{ partial "paige/link.html" (dict "href" "paige/katex/katex.css") }} diff --git a/layouts/partials/paige/scripts.html b/layouts/partials/paige/scripts.html index b9c79b09..4853655c 100644 --- a/layouts/partials/paige/scripts.html +++ b/layouts/partials/paige/scripts.html @@ -31,7 +31,7 @@ function paigeResize() { paigeResize(); addEventListener("resize", paigeResize); -{{ partial "paige/script.html" (dict "src" "paige/bootstrap/bootstrap.bundle.js") }} +{{ partial "paige/script.html" (dict "src" "_paige/bootstrap/bootstrap.bundle.js") }} {{ if or ($page.Param "paige.math") (and ($page.Param "paige.section_pages.full_pages") (where $page.Pages "Params.paige.math" "eq" true)) }} {{ partial "paige/script.html" (dict "src" "paige/katex/katex.js") }}