Move meta tags into a partial

This commit is contained in:
Oliver Davies 2018-09-10 20:20:45 +01:00
parent a30e3a71ea
commit 40685312fa
2 changed files with 11 additions and 10 deletions

View file

@ -8,16 +8,7 @@
{{ site.title }} - {{ site.subtitle }}
</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="canonical" href="{{ site.url }}{{ page.url }}" />
{% if page.meta.description %}
<meta name="description" content="{{ page.meta.description|e('html') }}">
{% endif %}
{% include 'og' with { og: page.meta.og } %}
{% include 'meta' %}
<link rel="stylesheet" href="/dist/css/app.css">
{% block stylesheets %}{% endblock %}

View file

@ -0,0 +1,10 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="canonical" href="{{ site.url }}{{ page.url }}" />
{% if page.meta.description %}
<meta name="description" content="{{ page.meta.description|e('html') }}">
{% endif %}
{% include 'og' with { og: page.meta.og } %}