{% assign project_name = site.settings.project.name %} {% unless project_name %} {% if site.github && site.github.is_project_page %} {% assign project_name = site.github.repository_name %} {% endif %} {% endunless %} {% assign author_name = site.settings.author.name %} {% unless author_name %} {% if site.github %} {% assign author_name = site.github.owner_name %} {% endif %} {% endunless %} {% assign author_name = author_name | default: 'John Doe' %} {% if project_name %} {% capture title %}{{ project_name }} - {{ author_name }}{% endcapture %} {% else %} {% capture title %}{{ author_name }}{% endcapture %} {% endif %} {% if page.url != '/' %} {% capture title %}{{ page.title }} - {{ title }}{% endcapture %} {% endif %}