sass-site/source/layouts/has_both_sidebars.haml

26 lines
1.3 KiB
Plaintext
Raw Normal View History

2018-10-23 15:06:39 -07:00
= wrap_layout :layout do
2018-12-27 19:07:00 -08:00
.sl-l-medium-holy-grail
.sl-l-medium-holy-grail__body
2019-12-12 18:15:39 -08:00
%nav.sl-l-medium-holy-grail__navigation(aria-label='Content navigation' role='navigation')
2018-10-26 23:37:10 -07:00
= yield_content :navigation
2018-10-23 15:06:39 -07:00
2018-12-27 19:07:00 -08:00
.sl-l-medium-holy-grail__main
2018-12-27 19:12:55 -08:00
.sl-l-large-holy-grail
.sl-l-large-holy-grail__body
2018-12-28 16:50:04 -08:00
- if content_for?(:complementary)
- has_contents = current_page.data.table_of_contents ? 'sl-l-large-holy-grail__complementary--contents' : ''
2019-12-12 18:52:14 -08:00
.sl-l-large-holy-grail__complementary{class: has_contents}
2018-12-28 15:22:59 -08:00
= yield_content :complementary
2018-10-23 15:06:39 -07:00
.sl-l-large-holy-grail__main.docSearch-content
2018-12-27 19:07:00 -08:00
- container = current_page.data.no_container ? '' : 'sl-l-container sl-l-container--small'
- container << ' sl-l-container--overview' if current_page.data.intro
2018-12-27 19:07:00 -08:00
%div{class: container}
2019-09-02 13:26:31 -07:00
= yield_content :before_introduction
2018-12-27 19:07:00 -08:00
- if current_page.data.introduction
- center_introduction = current_page.data.center_introduction ? 'sl-c-introduction--center' : ''
.sl-c-introduction{class: center_introduction}
= markdown_wrap current_page.data.introduction
2018-10-23 15:06:39 -07:00
2018-12-28 16:29:22 -08:00
= Typogruby.improve(yield)