Extract head

This commit is contained in:
Maria Rushkova 2021-08-05 16:37:13 +02:00
parent bf131dc080
commit adda19a88b
2 changed files with 26 additions and 25 deletions

25
_includes/head.html Normal file
View File

@ -0,0 +1,25 @@
<head>
{% if page.title %}
<title>{{ site.title }} - {{ page.title }}</title>
{% else %}
<title>{{ site.title }}</title>
{% endif %}
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>Vac</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="shortcut icon"
href="{{ '/assets/img/favicon.png' | relative_url }}"
type="image/png"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link
href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/style.css" />
</head>

View File

@ -3,31 +3,7 @@
<!DOCTYPE html>
<html class="no-js" lang="en-US">
<head>
{% if page.title %}
<title>{{ site.title }} - {{ page.title }}</title>
{% else %}
<title>{{ site.title }}</title>
{% endif %}
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>Vac</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="shortcut icon"
href="{{ '/assets/img/favicon.png' | relative_url }}"
type="image/png"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link
href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/style.css" />
</head>
{% include head.html %}
<body>
<div class="container max-w-screen-xl mx-auto px-5 md:px-12 lg:pt-6">
{% include header.html %}