mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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:
parent
efc1c5ef08
commit
3e68d59d12
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user