2020-10-16 22:12:09 +02:00
|
|
|
<!-- TikZJax support -->
|
|
|
|
{{ if (.Params.tikz) }}
|
|
|
|
<link rel="stylesheet" type="text/css" href="https://tikzjax.com/v1/fonts.css">
|
|
|
|
<script async src="https://tikzjax.com/v1/tikzjax.js"></script>
|
|
|
|
{{ end }}
|
2024-07-20 18:21:03 +02:00
|
|
|
<!-- Graphviz support -->
|
|
|
|
{{ if (.Params.graphviz) }}
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/@viz-js/viz@3.7.0/lib/viz-standalone.min.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
(function() {
|
|
|
|
Viz.instance().then(function(viz) {
|
|
|
|
Array.prototype.forEach.call(document.querySelectorAll("pre.graphviz"), function(x) {
|
|
|
|
var svg = viz.renderSVGElement(x.innerText);
|
|
|
|
// Let CSS take care of the SVG size
|
|
|
|
svg.removeAttribute("width")
|
|
|
|
svg.setAttribute("height", "auto")
|
|
|
|
x.replaceChildren(svg)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})();
|
|
|
|
</script>
|
|
|
|
{{ end }}
|
2024-07-20 18:24:21 +02:00
|
|
|
<!-- Mermaid support -->
|
|
|
|
{{ if (.Params.mermaid) }}
|
|
|
|
<script type="module" async>
|
|
|
|
import mermaid from "https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.esm.min.mjs";
|
|
|
|
mermaid.initialize({ startOnLoad: true });
|
|
|
|
</script>
|
|
|
|
{{ end }}
|
2021-01-04 15:49:02 +01:00
|
|
|
{{ with .OutputFormats.Get "atom" -}}
|
|
|
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
|
|
|
{{ end -}}
|