<title> metadata tweak for pages other than the home page #53

This commit is contained in:
Chris Croome 2019-06-05 11:51:17 +01:00
parent ab75dc95fb
commit 0a8dea4717

View File

@ -8,7 +8,11 @@
<meta name="description" content="{{ site.description }}" /> <meta name="description" content="{{ site.description }}" />
{% endif %} {% endif %}
<meta charset="UTF-8"> <meta charset="UTF-8">
{% if page.layout == "home" %}
<title>{{ page.title }} &laquo; {{ site.long_title }}</title> <title>{{ page.title }} &laquo; {{ site.long_title }}</title>
{% else %}
<title>{{ page.title }} &laquo; {{ site.long_title }}</title>
{% endif %}
<meta property="og:type" content="website" /> <meta property="og:type" content="website" />
{% if page.layout == "home" %} {% if page.layout == "home" %}
<meta property="og:title" content="{{ page.title }} &laquo; {{ site.long_title }}" /> <meta property="og:title" content="{{ page.title }} &laquo; {{ site.long_title }}" />