{%- comment -%} Include vars: title subtitle photo photo-alt auto-header content {%- endcomment -%} {%- assign _title = include.title | default: 'Untitled' -%} {%- assign _slug = include.title | strip_html | slugify | default: 'untitled' -%} {%- if include.photo and include.photo-alt -%} {%- capture _photo -%} {{- include.photo-alt -}} {%- endcapture -%} {%- assign _class = 'shade-one cover dark' -%} {%- else -%} {%- assign _photo = '' -%} {%- capture _class -%}shade-{%- cycle 'two', 'three', 'four', 'three' -%}{%- endcapture -%} {%- endif -%} {%- if include.auto-header == 'none' -%} {%- assign _heading = "" -%} {%- else -%} {%- capture _heading -%}

{%- if include.auto-header == null or include.auto-header == 'use-title' -%} {{- _title -}} {%- else -%} {{- include.auto-header -}} {%- endif -%}

{%- if include.subtitle -%}

{{- include.subtitle -}}

{%- endif -%}
{%- endcapture -%} {%- endif -%}
{{- _photo -}} {{- _heading -}} {{- include.content -}}