mirror of
https://github.com/danog/sass-site.git
synced 2024-12-06 05:49:00 +01:00
26 lines
1.3 KiB
Plaintext
26 lines
1.3 KiB
Plaintext
= wrap_layout :layout do
|
|
.sl-l-medium-holy-grail
|
|
.sl-l-medium-holy-grail__body
|
|
%nav.sl-l-medium-holy-grail__navigation(aria-label='Content navigation' role='navigation')
|
|
= yield_content :navigation
|
|
|
|
.sl-l-medium-holy-grail__main
|
|
.sl-l-large-holy-grail
|
|
.sl-l-large-holy-grail__body
|
|
- if content_for?(:complementary)
|
|
- has_contents = current_page.data.table_of_contents ? 'sl-l-large-holy-grail__complementary--contents' : ''
|
|
.sl-l-large-holy-grail__complementary{class: has_contents}
|
|
= yield_content :complementary
|
|
|
|
.sl-l-large-holy-grail__main.docSearch-content
|
|
- container = current_page.data.no_container ? '' : 'sl-l-container sl-l-container--small'
|
|
- container << ' sl-l-container--overview' if current_page.data.intro
|
|
%div{class: container}
|
|
= yield_content :before_introduction
|
|
- 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
|
|
|
|
= Typogruby.improve(yield)
|