From 263638719be1adc26a79faea21b7078c63b580ac Mon Sep 17 00:00:00 2001 From: somrat Date: Thu, 10 Oct 2019 12:35:10 +0600 Subject: fixed navigation is not working on blog pages issue --- layouts/partials/navigation.html | 94 ++++++++++++++++++++-------------------- static/js/main.js | 5 --- 2 files changed, 46 insertions(+), 53 deletions(-) diff --git a/layouts/partials/navigation.html b/layouts/partials/navigation.html index 357b782..afe68eb 100644 --- a/layouts/partials/navigation.html +++ b/layouts/partials/navigation.html @@ -1,52 +1,50 @@ {{ "" | safeHTML }} - \ No newline at end of file + {{ if .IsHome }} + + {{else}} + + {{end}} + + + + + + + \ No newline at end of file diff --git a/static/js/main.js b/static/js/main.js index a35bb13..5c9f523 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -65,11 +65,6 @@ $(document).ready(function () { } }); - $('#top-nav').onePageNav({ - currentClass: 'active', - changeHash: true, - scrollSpeed: 1200 - }); //Initiat WOW JS new WOW().init(); -- cgit v1.2.3