aboutsummaryrefslogtreecommitdiff
path: root/themes/flamingo/layouts/_default/baseof.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/flamingo/layouts/_default/baseof.html')
-rw-r--r--themes/flamingo/layouts/_default/baseof.html22
1 files changed, 0 insertions, 22 deletions
diff --git a/themes/flamingo/layouts/_default/baseof.html b/themes/flamingo/layouts/_default/baseof.html
index 9bf2faf..095a2e5 100644
--- a/themes/flamingo/layouts/_default/baseof.html
+++ b/themes/flamingo/layouts/_default/baseof.html
@@ -29,26 +29,4 @@
{{ partial "footer" . }}
</div>
</body>
-
- <script>
- // TODO
- // Use Hugo templating to achieve this
- // Script to check active nav menu
- (function() {
- const links = document.querySelectorAll("nav a")
- const currentUrl = location.href
-
- for (const link of links) {
- if (location.href.split("/").length === 4 && link.href.endsWith("/posts/")) {
- link.classList.add("active-link")
- break;
- }
-
- if (link.href === currentUrl) {
- link.classList.add("active-link")
- }
- }
- }())
- </script>
-
</html>