sass-site/source/layouts/section_reference.haml
Adekunle Oduye 26a515c3a9 [docs] Sticky Navigation (#373)
* [docNav] Moved h3 title into nav wrapper

* [docNav] Init styles for doc navigation component

* [docNav] Import doc navigation component into sass.css.scss

* [docNav] Functional to make doc navigation sticky on scroll

* [docNav] Rename js class name and changed from single to double quotes

* [docNav] Change class name to sl-js-nav--is-sticky

* [docNav] renamed doc-navigation to navigation and removed nesting

* [docNav] renamed doc-navigation to navigation

* [docNav] Added carriage return after h3
2019-10-12 09:55:30 -07:00

14 lines
404 B
Plaintext

= wrap_layout :has_both_sidebars do
=yield
- content_for :navigation do
= partial "layouts/components/reference_table_of_contents"
- if current_page.data.table_of_contents
- content_for :complementary do
%nav.page-sections.sl-c-list-navigation-wrapper.sl-c-list-navigation-wrapper--collapsible
%h3 Page Sections
= current_page.metadata[:table_of_contents]