We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ca3a1bf + ecfcbc3 commit 83ce52aCopy full SHA for 83ce52a
_includes/sidebar.html
@@ -12,7 +12,7 @@
12
<nav class="sidebar__nav">
13
<div class="sidebar__nav-interior">
14
{%- for section in sections -%}
15
- <h3 class="section__header">{{ section | capitalize }}</h3>
+ <h3 class="section__header" id="{{ section }}">{{ section | capitalize }}</h3>
16
17
<ul class="section__links">
18
{%- for item in site[section] -%}
@@ -23,5 +23,11 @@ <h3 class="section__header">{{ section | capitalize }}</h3>
23
</ul>
24
{%- endfor -%}
25
</div>
26
+
27
+ {%- if sections contains page.collection -%}
28
+ <script type="text/javascript">
29
+ document.getElementById("{{ page.collection }}").scrollIntoView();
30
+ </script>
31
+ {%- endif -%}
32
</nav>
33
0 commit comments