sass-site/source/layouts/has_navigation.haml
Natalie Weizenbaum 8f093ba74b Document the @use rule
Closes #361
2019-09-02 13:45:40 -07:00

17 lines
713 B
Plaintext

= wrap_layout :layout do
.sl-l-medium-holy-grail
.sl-l-medium-holy-grail__body
%nav.sl-l-medium-holy-grail__navigation(role='navigation')
= yield_content :navigation
.sl-l-medium-holy-grail__main
- container = current_page.data.no_container ? '' : 'sl-l-container sl-l-container--small'
%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)