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