diff options
author | gabrielgio <gabriel.giovanini@pm.me> | 2020-07-12 20:54:52 +0200 |
---|---|---|
committer | gabrielgio <gabriel.giovanini@pm.me> | 2020-07-12 20:54:52 +0200 |
commit | 31a09fcf1c0d7abf4791ca6e5bba37135d3305f7 (patch) | |
tree | ab2911083c5fca428fd009b20a24bdf36186b563 /themes/flamingo/layouts/_default | |
parent | beccd4b2a4730325b18f52aae6f457b2c593dc85 (diff) | |
download | gabrielgio.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')
-rw-r--r-- | themes/flamingo/layouts/_default/baseof.html | 22 |
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> |