Add option to toggle footer
This commit is contained in:
		@@ -4,6 +4,7 @@ openToc: false
 | 
				
			|||||||
enableLinkPreview: true
 | 
					enableLinkPreview: true
 | 
				
			||||||
enableLatex: true
 | 
					enableLatex: true
 | 
				
			||||||
enableSPA: true
 | 
					enableSPA: true
 | 
				
			||||||
 | 
					enableFooter: true
 | 
				
			||||||
enableContextualBacklinks: true
 | 
					enableContextualBacklinks: true
 | 
				
			||||||
enableRecentNotes: false
 | 
					enableRecentNotes: false
 | 
				
			||||||
description:
 | 
					description:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,8 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<hr/>
 | 
					<hr/>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					{{if $.Site.Data.config.enableFooter}}
 | 
				
			||||||
<div class="page-end">
 | 
					<div class="page-end">
 | 
				
			||||||
    <div class="backlinks-container">
 | 
					    <div class="backlinks-container">
 | 
				
			||||||
        {{partial "backlinks.html" .}}
 | 
					        {{partial "backlinks.html" .}}
 | 
				
			||||||
@@ -7,5 +11,6 @@
 | 
				
			|||||||
        {{partial "graph.html" .}}
 | 
					        {{partial "graph.html" .}}
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
 | 
					{{end}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{{partial "contact.html" .}}
 | 
					{{partial "contact.html" .}}
 | 
				
			||||||
@@ -63,7 +63,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    const draw = () => {
 | 
					    const draw = () => {
 | 
				
			||||||
      // NOTE: everything within this callback will be executed for every page navigation. This is a good place to put JavaScript that loads or modifies data on the page.
 | 
					      // NOTE: everything within this callback will be executed for every page navigation. This is a good place to put JavaScript that loads or modifies data on the page.
 | 
				
			||||||
 | 
					      {{if $.Site.Data.config.enableFooter}}
 | 
				
			||||||
      const container = document.getElementById("graph-container")
 | 
					      const container = document.getElementById("graph-container")
 | 
				
			||||||
      // retry if the graph is not ready
 | 
					      // retry if the graph is not ready
 | 
				
			||||||
      if (!container) return requestAnimationFrame(draw)
 | 
					      if (!container) return requestAnimationFrame(draw)
 | 
				
			||||||
@@ -78,7 +78,7 @@
 | 
				
			|||||||
        {{$.Site.Data.graphConfig.enableLegend}},
 | 
					        {{$.Site.Data.graphConfig.enableLegend}},
 | 
				
			||||||
        {{$.Site.Data.graphConfig.enableZoom}}
 | 
					        {{$.Site.Data.graphConfig.enableZoom}}
 | 
				
			||||||
      );
 | 
					      );
 | 
				
			||||||
 | 
					      {{end}}
 | 
				
			||||||
      {{if $.Site.Data.config.enableLinkPreview}}
 | 
					      {{if $.Site.Data.config.enableLinkPreview}}
 | 
				
			||||||
      initPopover(
 | 
					      initPopover(
 | 
				
			||||||
        {{strings.TrimRight "/" .Site.BaseURL }},
 | 
					        {{strings.TrimRight "/" .Site.BaseURL }},
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user