Move the content graph layout into theme

This commit is contained in:
2023-01-01 13:20:04 -08:00
parent 32738ce835
commit 84274f5c08
2 changed files with 69 additions and 0 deletions

16
layouts/graph/single.html Normal file
View File

@@ -0,0 +1,16 @@
{{ define "main" }}
<h2>{{ .Title }} </h2>
<script src="//unpkg.com/vis-network@9.1.0/dist/vis-network.min.js"></script>
<script type="module" src="{{ .Site.BaseURL }}/graph/graph.js"></script>
<style>
#graph-container {
width: 100%;
height: 50vh;
border-radius: 0.2rem;
border: .075rem solid #bfbfbf
}
</style>
{{ .Content }}
<div id="graph-container">
</div>
{{ end }}