aboutsummaryrefslogtreecommitdiff
path: root/themes/flamingo/layouts/_default/baseof.html
diff options
context:
space:
mode:
authorgabrielgio <gabriel.giovanini@pm.me>2020-07-12 20:54:52 +0200
committergabrielgio <gabriel.giovanini@pm.me>2020-07-12 20:54:52 +0200
commit31a09fcf1c0d7abf4791ca6e5bba37135d3305f7 (patch)
treeab2911083c5fca428fd009b20a24bdf36186b563 /themes/flamingo/layouts/_default/baseof.html
parentbeccd4b2a4730325b18f52aae6f457b2c593dc85 (diff)
downloadgabrielgio.me-31a09fcf1c0d7abf4791ca6e5bba37135d3305f7.tar.gz
gabrielgio.me-31a09fcf1c0d7abf4791ca6e5bba37135d3305f7.tar.bz2
gabrielgio.me-31a09fcf1c0d7abf4791ca6e5bba37135d3305f7.zip
Add log and some others small fixes
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>