Change file prefix to _paige
This commit is contained in:
@@ -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
|
||||
|
||||
|
18
config.yaml
18
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"]
|
||||
|
@@ -13,8 +13,8 @@
|
||||
<link color="{{ $page.Param `paige.color` | default `#0d6efd` }}" href="{{ relLangURL `safari-pinned-tab.svg` | safeURL }}" rel="mask-icon">
|
||||
<link href="{{ relLangURL `site.webmanifest` | safeURL }}" rel="manifest">
|
||||
|
||||
{{ 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") }}
|
||||
|
@@ -31,7 +31,7 @@ function paigeResize() {
|
||||
paigeResize();
|
||||
addEventListener("resize", paigeResize);
|
||||
</script>
|
||||
{{ 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") }}
|
||||
|
Reference in New Issue
Block a user