Add option to toggle footer

This commit is contained in:
Aiden Bai 2022-05-28 22:52:18 -07:00
parent 006b74ec6f
commit 8673a7bc3d
No known key found for this signature in database
GPG key ID: D37584388675FF3A
3 changed files with 8 additions and 2 deletions

View file

@ -63,7 +63,7 @@
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.
{{if $.Site.Data.config.enableFooter}}
const container = document.getElementById("graph-container")
// retry if the graph is not ready
if (!container) return requestAnimationFrame(draw)
@ -78,7 +78,7 @@
{{$.Site.Data.graphConfig.enableLegend}},
{{$.Site.Data.graphConfig.enableZoom}}
);
{{end}}
{{if $.Site.Data.config.enableLinkPreview}}
initPopover(
{{strings.TrimRight "/" .Site.BaseURL }},