Move the content graph layout into theme
This commit is contained in:
16
layouts/graph/single.html
Normal file
16
layouts/graph/single.html
Normal 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 }}
|
||||
Reference in New Issue
Block a user