From 61b34a5f260db45575d448d766ea29c0fb273ed3 Mon Sep 17 00:00:00 2001 From: Karl Hallsby Date: Sun, 27 Sep 2020 14:31:36 -0500 Subject: Add jekyll-text-theme YAML files --- _layouts/landing.html | 178 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 178 insertions(+) create mode 100644 _layouts/landing.html (limited to '_layouts/landing.html') diff --git a/_layouts/landing.html b/_layouts/landing.html new file mode 100644 index 0000000..306067b --- /dev/null +++ b/_layouts/landing.html @@ -0,0 +1,178 @@ +--- +layout: page +header: false +full_width: true +article_header: + type: overlay + align: center + height: 80vh +--- +
+
+ {%- for _section in page.data.sections -%} + {%- include snippets/get-nav-url.html path=_section.background_image.src -%} + {%- assign _url = __return -%} + {%- if _section.theme == 'light' -%} +
+ {%- else -%} + style="background-image: url({{ _url }});"> + {%- endif -%} + +
+
+ +

{{ _section.title }}

+ {%- if _section.excerpt-%} +

{{ _section.excerpt }}

+ {%- endif -%} + + {%- if _section.actions -%} + + {%- endif -%} + +
+ + {%- if _section.children -%} + {%- assign _size = _section.children | size -%} +
+
+ + {%- for child in _section.children -%} + + {%- if _size >= 2 -%} + {%- assign _cell_md_col = 6 -%} + {%- else -%} + {%- assign _cell_md_col = 12 | divided_by: _size -%} + {%- endif -%} + + {%- if _size >= 4 -%} + {%- assign _cell_lg_col = 3 -%} + {%- else -%} + {%- assign _cell_lg_col = 12 | divided_by: _size -%} + {%- endif -%} + +
+ +
+

{{ child.title }}

+ + {%- if child.excerpt-%} +

{{ child.excerpt }}

+ {%- endif -%} + + {%- if child.actions -%} + + {%- endif -%} +
+ + {%- if child.image and child.image.src -%} + + {%- if child.image.url -%} + {%- include snippets/get-nav-url.html path=child.image.url -%} + {%- assign _item_image_url = __return -%} + {%- else -%} + {%- assign _item_image_url = nil -%} + {%- endif -%} + + {%- include snippets/get-nav-url.html path=child.image.src -%} + {%- assign _item_image_src = __return -%} + + {%- if child.image.is_row -%} +
+ {%- endif -%} +
+ {%- if _item_image_url -%} + + {%- endif -%} + + {%- if _item_image_url -%} + + {%- endif -%} +
+ {%- if child.image.is_row -%} +
+ {%- endif -%} + {%- endif -%} + + {%- if child.content-%} +

{{ child.content }}

+ {%- endif -%} + +
+ {%- endfor-%} + +
+
+ {%- endif -%} + + {%- if _section.image.full_width == true -%} +
{% comment %} end hero__content {% endcomment %} + {%- endif -%} + + {%- if _section.image and _section.image.src -%} + + {%- if _section.image.url -%} + {%- include snippets/get-nav-url.html path=_section.image.url -%} + {%- assign _section_image_url = __return -%} + {%- else -%} + {%- assign _section_image_url = nil -%} + {%- endif -%} + + {%- include snippets/get-nav-url.html path=_section.image.src -%} + {%- assign _section_image_src = __return -%} + + {%- if _section.image.is_row -%} +
+ {%- endif -%} + + {%- if _section.image.is_row -%} +
+ {%- endif -%} + {%- endif -%} + + {%- if _section.image.full_width != true -%} +
{% comment %} end hero__content {% endcomment %} + {%- endif -%} + + {%- if _section.content-%} +

{{ _section.content }}

+ {%- endif -%} + + {%- endfor -%} +
+ + +{{ content }} -- cgit v1.2.3