{% if page.title -%}
{{ site.title }}: {{ page.title }}
{% elsif t.subtitle -%}
{% if page.url == "/" or page.direction == "rtl" -%}
{{ site.title }}: {{ t.subtitle }}
{% else -%}
{{ site.title }}: {{ t.subtitle }}
{% endif -%}
{% else -%}
{{ site.title }}
{% endif -%}
{% comment -%}
The `jekyll-seo-tag` plugin uses self-closing tags (for
XHTML compatibility) and, while it's still valid for an HTML5 DOCTYPE,
this leads to many `info` notices when running the HTML through a
validator. There's no way for us to control this behavior in the plugin,
so our only option is to capture the plugin output and naively remove the
trailing slash at the end of self-closing tags.
{% endcomment -%}
{% capture plugin_output -%}
{% seo title=false -%}
{% endcapture -%}
{{ plugin_output | replace: " />", ">" | replace: "/>", ">" }}
{% if site.url == "http://localhost:4000" -%}
{% endif -%}
{% if site.data.locales and page.lang -%}
{% assign locales = site.data.locales | sort -%}
{% for locale in locales -%}
{% assign lang = locale[0] -%}
{% if lang == "en" -%}
{% else -%}
{% endif -%}
{% endfor -%}
{% endif -%}
{% if page.url == "/" -%}
{% for rel_me_url in site.link_rel_me_urls -%}
{% endfor -%}
{% endif -%}