head: Enable scrollspy support for fixed table of contents

This commit is contained in:
George Cushen committed 2017-11-19 16:36:03 +00:00
1 parent 524b562ea6
commit 71feb4ed7e
1 file changed
+1 -1
+1 -1
View File
@@ -122,4 +122,4 @@
<title>{{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
</head>
<body id="top" data-spy="scroll" data-target="#navbar-main" data-offset="71" {{ if not ($scr.Get "light") }}class="dark"{{ end }}>
<body id="top" data-spy="scroll" data-target="{{ if or .IsHome .Params.widgets }}#navbar-main{{ else }}#toc{{ end }}" data-offset="71" {{ if not ($scr.Get "light") }}class="dark"{{ end }}>