mirror of https://github.com/jpanther/congo.git
📦 Update to Chart.js v4.0.1
parent
13ad02896e
commit
2aa46c6fee
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -8,7 +8,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{/* Chart */}}
|
{{/* Chart */}}
|
||||||
{{ if .Page.HasShortcode "chart" }}
|
{{ if .Page.HasShortcode "chart" }}
|
||||||
{{ $chartLib := resources.Get "lib/chart/chart.min.js" }}
|
{{ $chartLib := resources.Get "lib/chart/chart.umd.js" }}
|
||||||
{{ $chartConfig := resources.Get "js/chart.js" }}
|
{{ $chartConfig := resources.Get "js/chart.js" }}
|
||||||
{{ $chartConfig := $chartConfig | resources.Minify }}
|
{{ $chartConfig := $chartConfig | resources.Minify }}
|
||||||
{{ $chartJS := slice $chartLib $chartConfig | resources.Concat "js/chart.bundle.js" | resources.Fingerprint "sha512" }}
|
{{ $chartJS := slice $chartLib $chartConfig | resources.Concat "js/chart.bundle.js" | resources.Fingerprint "sha512" }}
|
||||||
|
@ -31,6 +31,6 @@
|
||||||
<script defer src="{{ $katexRenderJS.RelPermalink }}" integrity="{{ $katexRenderJS.Data.Integrity }}" onload="renderMathInElement(document.body);"></script>
|
<script defer src="{{ $katexRenderJS.RelPermalink }}" integrity="{{ $katexRenderJS.Data.Integrity }}" onload="renderMathInElement(document.body);"></script>
|
||||||
{{ $katexFonts := resources.Match "lib/katex/fonts/*" }}
|
{{ $katexFonts := resources.Match "lib/katex/fonts/*" }}
|
||||||
{{ range $katexFonts }}
|
{{ range $katexFonts }}
|
||||||
<!-- {{ .RelPermalink }} -->
|
{{ .Publish }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
"version": "2.4.1",
|
"version": "2.4.1",
|
||||||
"description": "Congo theme for Hugo",
|
"description": "Congo theme for Hugo",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"preinstall": "rimraf assets/vendor",
|
"preinstall": "rimraf assets/lib",
|
||||||
"postinstall": "vendor-copy",
|
"postinstall": "vendor-copy",
|
||||||
"assets": "rimraf assets/vendor && vendor-copy",
|
"assets": "rimraf assets/lib && vendor-copy",
|
||||||
"dev": "NODE_ENV=development ./node_modules/tailwindcss/lib/cli.js -i ./assets/css/main.css -o ./assets/css/compiled/main.css --jit -w",
|
"dev": "NODE_ENV=development ./node_modules/tailwindcss/lib/cli.js -i ./assets/css/main.css -o ./assets/css/compiled/main.css --jit -w",
|
||||||
"build": "NODE_ENV=production ./node_modules/tailwindcss/lib/cli.js -i ./assets/css/main.css -o ./assets/css/compiled/main.css --jit",
|
"build": "NODE_ENV=production ./node_modules/tailwindcss/lib/cli.js -i ./assets/css/main.css -o ./assets/css/compiled/main.css --jit",
|
||||||
"example": "hugo server --source exampleSite --themesDir ../.. --buildDrafts -b http://localhost/congo/ -p 8008",
|
"example": "hugo server --source exampleSite --themesDir ../.. --buildDrafts -b http://localhost/congo/ -p 8008",
|
||||||
|
@ -48,8 +48,8 @@
|
||||||
"to": "assets/lib/mermaid/mermaid.min.js"
|
"to": "assets/lib/mermaid/mermaid.min.js"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"from": "node_modules/chart.js/dist/chart.min.js",
|
"from": "node_modules/chart.js/dist/chart.umd.js",
|
||||||
"to": "assets/lib/chart/chart.min.js"
|
"to": "assets/lib/chart/chart.umd.js"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"from": "node_modules/katex/dist/katex.min.js",
|
"from": "node_modules/katex/dist/katex.min.js",
|
||||||
|
|
Loading…
Reference in New Issue