{%- assign background = page.header | default: site.header | default: "none" -%}
{%- if background == "none" -%}
  {%- assign background = nil -%}
{%- endif -%}

{%- assign dark = page.header-dark -%}
{%- if dark == nil -%}
  {%- assign dark = site.header-dark -%}
{%- endif -%}
{%- if dark == nil -%}
  {%- assign dark = true -%}
{%- endif -%}

{%- assign title = site.logo-text -%}
{%- if title == nil -%}
  {%- assign title = site.title -%}
{%- endif -%}

<header {% if background %}class="background"{% endif