diff --git a/.gitignore b/.gitignore index d468037..fc65ed6 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /coverage.out /test/out /mark2web +/tmp/ \ No newline at end of file diff --git a/pkg/mark2web/navigation.go b/pkg/mark2web/navigation.go index c0e3a75..27e9690 100644 --- a/pkg/mark2web/navigation.go +++ b/pkg/mark2web/navigation.go @@ -55,7 +55,7 @@ func buildNavigationRecursive(tree *TreeNode, curNavMap *map[string]*NavElement, subMap := make(map[string]*NavElement) subSlice := make([]*NavElement, 0) navEl := NavElement{ - Active: strings.HasPrefix(activeNav, elPath), + Active: strings.HasPrefix(activeNav, elPath+"/") || activeNav == elPath, Data: el.Config.Data, ColMap: el.ColMap, SubMap: &subMap, diff --git a/tmp/main b/tmp/main deleted file mode 100755 index 1d348cd..0000000 Binary files a/tmp/main and /dev/null differ