{{ $js := .Site.Data.lib.js }} {{ $css := .Site.Data.lib.css }} {{ $jquery := resources.Get "js/jquery.min.js" | resources.Fingerprint }} {{ $clipboard := resources.Get "js/clipboard.min.js" | resources.Fingerprint }} {{ $enquire := resources.Get "js/enquire.min.js" | resources.Fingerprint }} {{ $prism := resources.Get "js/prism.min.js" | resources.Minify | resources.Fingerprint }} {{ $zzo := resources.Get "js/zzo.js" | resources.Minify | resources.Fingerprint }} {{ if $.Param "enablePhotoSwipe" }} {{ $fancyboxjs := resources.Get "js/jquery.fancybox.min.js" | resources.Fingerprint }} {{ $fancyboxcss := resources.Get "css/jquery.fancybox.min.css" | resources.Fingerprint }} {{ end }} {{ if $.Param "enableToc" }} {{ $toc := resources.Get "js/jquery.toc.min.js" | resources.Fingerprint }} {{ end }} {{ if in .Params.Libraries "mermaid" }} {{ printf "" $js.mermaid.url $js.mermaid.sri | safeHTML }} {{ end }} {{ if in .Params.Libraries "katex" }} {{ printf "" $css.katex.url $css.katex.sri | safeHTML }} {{ printf "" $js.katex.url $js.katex.sri | safeHTML }} {{ printf "" $js.katex_auto_render.url $js.katex_auto_render.sri | safeHTML }} {{ end }} {{ if in .Params.Libraries "flowchartjs" }} {{ printf "" $js.raphael.url $js.raphael.sri | safeHTML }} {{ printf "" $js.flowchartjs.url $js.flowchartjs.sri | safeHTML }} {{ end }} {{ if in .Params.Libraries "mathjax" }} {{ printf "" $js.mathjax.url $js.mathjax.sri | safeHTML }} {{ end }} {{ if in .Params.Libraries "msc" }} {{ printf "" $js.webfont.url | safeHTML }} {{ printf "" $js.snap_svg.url | safeHTML }} {{ printf "" $js.lodash.url $js.lodash.sri | safeHTML }} {{ printf "" $js.sequence_diagram.url $js.sequence_diagram.sri | safeHTML }} {{ printf "" $css.sequence_diagram.url $css.sequence_diagram.sri | safeHTML }} {{ end }} {{ if in .Params.Libraries "chart" }} {{ printf "" $js.chart.url $js.chart.sri | safeHTML }} {{ end }} {{ if in .Params.Libraries "wavedrom" }} {{ printf "" $js.wavedrom.url $js.wavedrom.sri | safeHTML }} {{ printf "" $js.wavedrom_skin.url $js.wavedrom_skin.sri | safeHTML }} {{ end }} {{ if in .Params.Libraries "viz" }} {{ printf "" $js.viz.url | safeHTML }} {{ printf "" $js.viz_render.url $js.viz_render.sri | safeHTML }} {{ end }}