sass-site/source/layouts/has_both_sidebars.haml

23 lines
1.0 KiB
Plaintext
Raw Normal View History

2018-10-24 00:06:39 +02:00
= wrap_layout :layout do
2018-12-28 04:07:00 +01:00
.sl-l-medium-holy-grail
.sl-l-medium-holy-grail__body
%nav.sl-l-medium-holy-grail__navigation(role='navigation')
2018-10-27 08:37:10 +02:00
= yield_content :navigation
2018-10-24 00:06:39 +02:00
2018-12-28 04:07:00 +01:00
.sl-l-medium-holy-grail__main
2018-12-28 04:12:55 +01:00
.sl-l-large-holy-grail
.sl-l-large-holy-grail__body
- has_contents = current_page.data.table_of_contents ? 'sl-l-large-holy-grail__complementary--contents' : ''
%aside.sl-l-large-holy-grail__complementary(role='complementary'){class: has_contents}
2018-12-28 04:07:00 +01:00
= yield_content :complementary
2018-10-24 00:06:39 +02:00
2018-12-28 04:12:55 +01:00
.sl-l-large-holy-grail__main
2018-12-28 04:07:00 +01:00
- container = current_page.data.no_container ? '' : 'sl-l-container sl-l-container--small'
%div{class: container}
- 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-24 00:06:39 +02:00
2018-12-28 04:07:00 +01:00
=yield