{{/* Mermaid */}} {{ if .Page.HasShortcode "mermaid" }} {{ $mermaidJS := resources.Get "vendor/mermaid/mermaid.min.js" }} {{ $mermaidJS := $mermaidJS | resources.Fingerprint "sha512" }} {{ end }} {{/* Chart */}} {{ if .Page.HasShortcode "chart" }} {{ $chartJS := resources.Get "vendor/chart/chart.min.js" }} {{ $chartJS := $chartJS | resources.Fingerprint "sha512" }} {{ end }} {{/* Katex */}} {{ if .Page.HasShortcode "katex" }} {{ $katexCSS := resources.Get "vendor/katex/katex.min.css" }} {{ $katexCSS := $katexCSS | resources.Fingerprint "sha512" }} {{ $katexJS := resources.Get "vendor/katex/katex.min.js" }} {{ $katexJS := $katexJS | resources.Fingerprint "sha512" }} {{ $katexRenderJS := resources.Get "vendor/katex/auto-render.min.js" }} {{ $katexRenderJS := $katexRenderJS | resources.Fingerprint "sha512" }} {{ $katexFonts := resources.Match "vendor/katex/fonts/*" }} {{ range $katexFonts }} {{ end }} {{ end }}