Move meta tags into a partial
This commit is contained in:
parent
a30e3a71ea
commit
40685312fa
|
@ -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 %}
|
||||
|
|
10
source/_partials/meta.html.twig
Normal file
10
source/_partials/meta.html.twig
Normal 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 } %}
|
Reference in a new issue