mylloon.fr/templates/blog/footer.html
2023-04-19 18:55:03 +02:00

42 lines
1.3 KiB
HTML

<footer>
<a href="/blog" target="_self">Retour à la liste des posts</a>
</footer>
{{#data}} {{#post}} {{#metadata}} {{#math}}
<!-- KaTeX -->
<script
defer
src="https://cdn.jsdelivr.net/npm/katex@0.16.6/dist/katex.min.js"
integrity="sha384-j/ZricySXBnNMJy9meJCtyXTKMhIJ42heyr7oAdxTDBy/CYA9hzpMo+YTNV5C+1X"
crossorigin="anonymous"
></script>
<script
defer
src="https://cdn.jsdelivr.net/npm/katex@0.16.6/dist/contrib/auto-render.min.js"
integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05"
crossorigin="anonymous"
onload="renderMathInElement(document.body);"
></script>
{{/math}} {{#mermaid}}
<!-- Mermaid diagrams -->
<script type="module">
import mermaid from "https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs";
mermaid.initialize({ startOnLoad: true });
</script>
{{/mermaid}} {{#syntax_highlight}}
<!-- Syntax highligthing -->
<script src="https://cdn.jsdelivr.net/npm/shiki"></script>
<script>
shiki
.getHighlighter({
theme: "nord",
})
.then((highlighter) => {
const code = highlighter.codeToHtml(`console.log('shiki');`, {
lang: "js",
});
document.getElementById("output").innerHTML = code;
});
</script>
{{/syntax_highlight}} {{/metadata}} {{/post}} {{/data}}