--- layout: base --- {%- assign _page_mode = page.mode | default: layout.mode | default: site.data.variables.default.page.mode -%} {%- assign _page_type = page.type | default: layout.type | default: site.data.variables.default.page.type -%} {%- assign _article_header_type = page.article_header.type | default: layout.article_header.type -%} {%- include snippets/assign.html target=layout.header source0=page.header -%} {%- assign _header = __return -%} {%- include snippets/assign.html target=layout.footer source0=page.footer -%} {%- assign _footer = __return -%} {%- assign _footer = false -%} {%- include snippets/assign.html target=layout.lightbox source0=page.lightbox -%} {%- assign _lightbox = __return -%} {%- include snippets/assign.html target = site.data.variables.default.page.full_width source0=layout.full_width source1=page.full_width -%} {%- assign _full_width = __return -%} {%- include snippets/assign.html target = site.data.variables.default.page.comment source0=layout.comment source1=page.comment -%} {%- assign _comment = __return -%} {%- assign _article_header_excerpt_truncate = include.excerpt_truncate | default: 200 -%} {%- if page.sidebar -%}
{%- include sidebar/toc.html -%}
{%- else -%}
{%- endif -%} {%- assign _page_main_class = 'page__main js-page-main' -%} {%- if _page_mode == 'immersive' -%} {%- assign _page_main_class = _page_main_class | append: ' page__main--immersive' -%} {%- endif -%} {%- unless page.sidebar -%} {%- assign _page_main_class = _page_main_class | append: ' page__viewport' -%} {%- endunless -%} {%- if _footer == false -%} {%- assign _page_main_class = _page_main_class | append: ' hide-footer' -%} {%- endif -%} {%- assign _page_main_class = _page_main_class | append: ' has-aside' -%}
{%- if _header != false -%} {%- endif -%}
{%- if _article_header_type == 'overlay' or _article_header_type == 'cover' -%} {%- if _article_header_type == 'overlay' -%} {%- assign _article_header_height = page.article_header.height | default: layout.article_header.height -%} {%- assign _article_header_align = page.article_header.align | default: layout.article_header.align | default: site.data.variables.default.page.article_header.align -%} {%- assign _article_header_theme = page.article_header.theme | default: layout.article_header.theme | default: site.data.variables.default.page.article_header.theme -%} {%- if page.article_header.background_image.src -%} {%- assign _header_background_image_src = page.article_header.background_image.src -%} {%- elsif page.article_header.background_image != false and page.cover -%} {%- assign _header_background_image_src = page.cover -%} {%- endif -%} {%- if page.article_header.background_image.gradient -%} {%- assign _header_background_image = page.article_header.background_image.gradient -%} {%- if _header_background_image_src -%} {%- assign _header_background_image = _header_background_image | append: ',' -%} {%- endif -%} {%- endif -%} {%- if _header_background_image_src -%} {%- include snippets/get-nav-url.html path=_header_background_image_src -%} {%- assign _header_background_image_src = __return -%} {%- assign _header_background_image = _header_background_image | append: 'url(' | append: _header_background_image_src | append: ')'-%} {%- endif -%} {%- assign _header_style = 'background-image:' | append: _header_background_image | append: ';' -%} {%- if page.article_header.background_color -%} {%- assign _header_style = _header_style | append: 'background-color:' | append: page.article_header.background_color | append: ';' -%} {%- endif -%} {%- if _article_header_height -%} {%- assign _header_style = _header_style | append: 'min-height:' | append: _article_header_height | append: ';' -%} {%- endif -%}
{%- if _article_header_theme == 'light' -%} {%- if _article_header_align == 'center' -%}
{%- else -%}
{%- endif -%} {%- elsif _article_header_theme == 'dark' -%} {%- if _article_header_align == 'center' -%}
{%- else -%}
{%- endif -%} {%- else -%} {%- if _article_header_align == 'center' -%}
{%- else -%}
{%- endif -%} {%- endif -%}
{%- if _full_width == false -%}
{%- endif -%} {%- include article-info.html article=page semantic=false -%} {%- include article-header.html article=page semantic=false -%} {%- if page.excerpt -%}

{{ page.excerpt | strip_html | strip_newlines | strip | truncate: _article_header_excerpt_truncate }}

{%- endif -%} {%- if page.article_header.actions -%} {%- endif -%} {%- if _full_width == false -%}
{%- endif -%}
{%- elsif _article_header_type == 'cover' -%} {%- if page.article_header.image.src -%} {%- include snippets/get-nav-url.html path=page.article_header.image.src -%} {%- assign _header_image_src = __return -%} {%- endif -%} {%- endif -%} {%- endif -%} {%- if _full_width == false -%}
{%- endif -%}
{%- include main/top/custom.html -%} {%- if _page_type == 'article' -%}
{%- elsif _page_type == 'webpage' -%}
{%- else -%}
{%- endif -%} {%- if _article_header_type == 'overlay' or page.article_header == false -%} {%- include article-header.html article=page html=false -%} {%- include article-info.html article=page html=false -%} {%- else -%} {%- include article-header.html article=page -%} {%- include article-info.html article=page -%} {%- endif -%}
{{ content }}
{%- if _comment != false -%}
{%- include comments.html -%}
{%- endif -%}
{%- include main/bottom/custom.html -%}
{%- if _full_width == false -%}
{%- endif -%}
{%- if _footer != false -%} {%- endif -%}
{%- comment -%} end page__main {%- endcomment -%} {%- if page.sidebar -%}
{%- comment -%} end grid {%- endcomment -%}
{%- comment -%} end page__viewport {%- endcomment -%} {%- endif -%} {%- if _lightbox == true -%} {%- endif -%} {%- if _header != false -%} {%- endif -%}
{%- if page.sidebar -%} {%- endif -%} {%- if page.aside -%} {%- endif -%} {%- include markdown-enhancements.html -%}