Add viewport meta tag for responsive layout

Viewport meta tag is necessary to make layout responsive. Without it, the layout is rendered for desktop size and then scaled down, making text small and difficult to read. It also makes a site fail Google Lighthouse audits.
This commit is contained in:
Olga Bulat 2020-05-20 15:15:03 +03:00 committed by GitHub
parent efc1c5ef08
commit 3e68d59d12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,6 +120,7 @@
{%- else %}
<meta http-equiv="Content-Type" content="text/html; charset={{ encoding }}" />
{%- endif %}
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{{- metatags }}
{%- block htmltitle %}
<title>{{ title|striptags|e }}{{ titlesuffix }}</title>