Improve graph display, options and ability to have a global graph on the home page, local graphs on subpage.
parent
84c6e1efed
commit
5a1fbc9374
@ -1,6 +1,35 @@
|
||||
# if true, a Global Graph will be shown on home page with full width, no backlink.
|
||||
# A different set of Local Graphs will be shown on sub pages.
|
||||
# if false, Local Graph will be default on every page as usual
|
||||
enableGlobalGraph: true
|
||||
|
||||
### Local Graph ###
|
||||
|
||||
enableLegend: false
|
||||
enableDrag: true
|
||||
enableZoom: true
|
||||
depth: -1 # set to -1 to show full graph
|
||||
depth: 1 # set to -1 to show full graph
|
||||
scale: 1
|
||||
repelForce: 2
|
||||
centerForce: 1
|
||||
linkDistance: 1
|
||||
fontSize: 0.6
|
||||
opacityScale: 3
|
||||
|
||||
### Global Graph ###
|
||||
|
||||
enableLegendGG: false
|
||||
enableDragGG: true
|
||||
enableZoomGG: true
|
||||
depthGG: -1 # set to -1 to show full graph
|
||||
scaleGG: 1.2
|
||||
repelForceGG: 1
|
||||
centerForceGG: 1
|
||||
linkDistanceGG: 1
|
||||
fontSizeGG: 0.5
|
||||
opacityScaleGG: 3
|
||||
|
||||
### Graphs ###
|
||||
|
||||
paths:
|
||||
- /moc: "#4388cc"
|
||||
- /moc: "#4388cc"
|
||||
|
@ -0,0 +1,28 @@
|
||||
|
||||
|
||||
<hr/>
|
||||
|
||||
{{if $.Site.Data.config.enableFooter}}
|
||||
{{if $.Site.Data.graphConfig.enableGlobalGraph}}
|
||||
<div class="page-end">
|
||||
|
||||
<div>
|
||||
{{partial "graph.html" .}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{{else}}
|
||||
<hr/>
|
||||
<div class="page-end">
|
||||
<div class="backlinks-container">
|
||||
{{partial "backlinks.html" .}}
|
||||
</div>
|
||||
<div>
|
||||
{{partial "graph.html" .}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
||||
{{partial "contact.html" .}}
|
Loading…
Reference in New Issue