{% set pageTitle = title + ' - ' + site.name %} {# We don't want any duplication. This is likely for the homepage #} {% if site.name === title %} {% set pageTitle = title %} {% endif %} {% set siteTitle = site.name %} {% set currentUrl = site.url + page.url %} {# If the page’s frontmatter has specific metaTitle and/or metaDesc items, switch them into the mix #} {% if metaTitle %} {% set pageTitle = metaTitle %} {% endif %} {% if not metaDesc %} {% set metaDesc = summary %} {% endif %} {{ pageTitle }} {% if socialImage %} {% endif %} {% if metaDesc %} {% endif %}