{% assign filename = page.path | split: "/" | last %} {% if page.name and page.name != filename %} {% assign title = page.name %} {% elsif page.title %} {% assign title = page.title %} {% else %} {% assign title = nil %} {% endif %} {% assign fulltitle = "" | split: "," %} {% if title %} {% assign fulltitle = fulltitle | push: title %} {% endif %} {% if site.title %} {% assign fulltitle = fulltitle | push: site.title %} {% endif %} {% assign fulltitle = fulltitle | join: " | " %} {% assign subtitle = site.subtitle %} {% assign description = page.description | default: site.description %} {% if site.subtitle %} {% capture description -%} {{ site.subtitle }}. {{ description }} {%- endcapture %} {% endif %} {% capture url -%} {{ site.url }}{{ site.baseurl }} {%- endcapture %} {% assign png = "images/icon.png" | file_exists %} {% assign jpg = "images/icon.jpg" | file_exists %} {% assign icon = png | default: jpg | relative_url %} {% assign jpg = "images/share.jpg" | file_exists %} {% assign png = "images/share.png" | file_exists %} {% assign share = jpg | default: png | relative_url %} {% assign published = page.date | date_to_xmlschema %} {% assign updated = page.last_modified_at | date_to_xmlschema %} {% assign feed = "feed.xml" | absolute_url %} {{ fulltitle }} {% if page.author %} {% else %} {% endif %}