website/layouts/_default/single.html
2025-01-23 15:11:51 -05:00

20 lines
571 B
HTML

<!doctype html>
<html>
<head>
{{ partialCached "head.html" . .Title }} {{ if .Store.Get "hasMermaid" }}
<script type="module">
import mermaid from "https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.esm.min.mjs";
mermaid.initialize({startOnLoad: true});
</script>
{{ end }}
</head>
<body>
<!-- Code that all your templates share, like a header -->
{{ partialCached "header.html" . .Page}} {{.Content}}
<!-- More shared code, perhaps a footer but that can be overridden if need be in -->
{{ partialCached "footer.html" . .Page}}
</body>
</html>