{%- assign canonical_url = page.url | replace: "index.html", "" | absolute_url | uri_escape -%}
{%- assign home_url = "index.html" | absolute_url | replace: "index.html", "" | uri_escape -%}
{%- assign metatitle1 = page.title | default: site.title | default: site.github.repository_name | strip_html -%}
{%- assign metatitle2 = site.title | default: site.github.repository_name | strip_html -%}
{%- assign strippedurl = page.url | replace: "index.html", "" -%}
{%- if strippedurl == "/" -%}
{%- assign metatitle1 = site.title | default: site.github.repository_name -%}
{%- assign metatitle2 = site.subtitle | default: site.github.project_tagline -%}
{%- endif -%}
{%- capture metatitle -%}{{ metatitle1 | strip_html }} {{ site.title_separator | default: "|" }} {{ metatitle2 | strip_html }}{%- endcapture -%}
{%- assign mainname = site.title | default: site.github.repository_name -%}
{%- assign mainsub = site.subtitle | default: site.github.project_tagline -%}
{%- capture sitename -%}{{ mainname | strip_html }} {{ site.title_separator | default: "|" }} {{ mainsub | strip_html }}{%- endcapture -%}
{%- assign ogimage = page.og_image | default: page.header_img | default: site.og_image | default: site.author.avatar | default: site.github.owner_gravatar_url | absolute_url -%}
{%- assign descfallback = page.content |
markdownify | newline_to_br |
replace:"
", ",.," |
replace:"{{", ",.," |
replace:"{%", ",.," |
split: ",.," | first -%}
{%- assign ogdesc = page.excerpt | default: descfallback |
strip_html | escape_once -%}
{%- if page.subtitle -%}
{%- assign ogdesc = page.subtitle | append: " - " | append: ogdesc | strip_html | escape_once -%}
{%- endif -%}
{%- assign links = page.author.links | default: site.author.links -%}
{%- for item in links -%}
{%- if item.url contains "twitter.com/" -%}
{%- assign twitterauthor = item.url | split: "/" | last -%}
{%- break -%}
{%- endif -%}
{%- endfor %}
{%- assign authorlink = links | where_exp: "item", "item.url contains 'http'" %}
{% if page.breadcrumb_list %}
{% else %}
{% endif %}
{%- assign sitelink = site.author.links |
where_exp: "item", "item.url contains 'http'"
-%}
{% if page.author %}
{%- assign pagelink = page.author.links |
where_exp: "item", "item.url contains 'http'"
-%}
{% endif %}