From 8673a7bc3d1061eb11381e8d7e85dd0d2e1fa64c Mon Sep 17 00:00:00 2001
From: Aiden Bai <aiden.bai05@gmail.com>
Date: Sun, 29 May 2022 05:52:18 +0000
Subject: [PATCH] Add option to toggle footer
---
layouts/partials/head.html | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 25120d5..f10ce14 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -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 }},
--
Gitblit v1.10.0