{%- assign page_title = page.title | default: site.title | replace: '|', '|' -%}
{%- assign seo_title = page_title | append: " " | append: title_separator | append: " " | append: site.title | replace: '|', '|' -%}
{%- assign page_title = page_title | markdownify | strip_html | strip_newlines | escape_once -%}
{%- assign seo_title = seo_title | markdownify | strip_html | strip_newlines | escape_once -%}
{%- assign canonical_url = page.canonical_url | default: page.url | replace: "/embed/", "/" | replace: "/slides/", "/" | replace: "/present/", "/" | absolute_url -%}
{%- if page.presentation_id -%}
{%- assign page_teaser_image = page.presentation_id | append: "/" | append: page.header.teaser | absolute_url | escape -%}
{%- else -%}
{%- assign page_large_image = page.header.og_image | default: page.header.overlay_image | default: page.header.image | absolute_url | escape -%}
{%- assign page_teaser_image = page.header.teaser | absolute_url | escape -%}
{%- endif -%}
{%- assign site_og_image = site.og_image | absolute_url | escape -%}
{%- assign raw_description = seo_description | default: page.description | default: page.presentation_description | default: page.presentation_description_md | default: page.excerpt | default: site.description -%}
{%- assign seo_description = raw_description | strip_html | strip_newlines | normalize_whitespace | escape_once -%}
{%- if page.presentation_description -%}
{%- assign seo_description = page.presentation_description | markdownify | strip_html | newline_to_br | strip_newlines | replace: '
', ' ' | escape_once | strip -%}
{%- elsif page.presentation_description_md -%}
{%- assign seo_description = page.presentation_description_md | url_decode | markdownify | strip_html | newline_to_br | strip_newlines | replace: '
', ' ' | escape_once | strip -%}
{%- endif -%}
{%- if page.date -%}
{%- assign og_type = "article" -%}
{%- else -%}
{%- assign og_type = "website" -%}
{%- endif -%}