Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/apvarun/showcase-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/footer.html')
-rw-r--r--layouts/partials/footer.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index a3b9321..6d8475a 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -131,5 +131,6 @@
);
});
- document.querySelector(`.show-all`).addEventListener("click", showAll);
+ const showAllButton = document.querySelector(`.show-all`)
+ if(showAllButton) showAllButton.addEventListener("click", showAll);
</script>