diff options
author | back2root <back2root@users.noreply.github.com> | 2020-11-06 22:50:57 +0300 |
---|---|---|
committer | back2root <back2root@users.noreply.github.com> | 2020-11-06 22:50:57 +0300 |
commit | a59c2cfea4369113f731994a11ba399770eb5edf (patch) | |
tree | 1856726b1d140502a2f40aca866b692adaed6c74 /layouts | |
parent | 355413686b8f1e63303e4844a369d32e0ffa4a23 (diff) |
Allow the user scale the viewport
Disabling zooming is problematic for users with low vision who rely on
screen magnification to properly see the contents of a web page.
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/head.html | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 17d401c..5b6e898 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,32 +1,32 @@ -<head> - <meta charset="utf-8"> - <title>{{ .Title }}</title> - - {{ "<!-- mobile responsive meta -->" | safeHTML }} - <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> - <meta name="description" content="{{ with .Params.Description }}{{ . }}{{ else }}{{ with site.Params.description }}{{ . }}{{ end }}{{ end }}"> - {{ with site.Params.author }}<meta name="author" content="{{ . }}">{{ end }} - {{ hugo.Generator }} - - {{ "<!-- plugins -->" | safeHTML }} - {{ range site.Params.plugins.css }} - <link rel="stylesheet" href="{{ .link | absURL }}"> - {{ end }} - - {{ "<!-- Main Stylesheet -->" | safeHTML }} - {{ $style := resources.Get "scss/style.scss" | toCSS | minify }} - <link href="{{ $style.Permalink }}" rel="stylesheet" media="screen"/> - - {{ "<!--Favicon-->" | safeHTML }} - <link rel="shortcut icon" href="{{ `images/favicon.png` | absURL }}" type="image/x-icon"> - <link rel="icon" href="{{ `images/favicon.png` | absURL }}" type="image/x-icon"> - - - {{ with .Params.Image }} - <meta property="og:image" content="{{ . | absURL }}" /> - {{ end }} - {{ template "_internal/opengraph.html" . }} - {{ template "_internal/google_analytics.html" . }} - {{ template "_internal/google_analytics_async.html" . }} - +<head>
+ <meta charset="utf-8">
+ <title>{{ .Title }}</title>
+
+ {{ "<!-- mobile responsive meta -->" | safeHTML }}
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
+ <meta name="description" content="{{ with .Params.Description }}{{ . }}{{ else }}{{ with site.Params.description }}{{ . }}{{ end }}{{ end }}">
+ {{ with site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
+ {{ hugo.Generator }}
+
+ {{ "<!-- plugins -->" | safeHTML }}
+ {{ range site.Params.plugins.css }}
+ <link rel="stylesheet" href="{{ .link | absURL }}">
+ {{ end }}
+
+ {{ "<!-- Main Stylesheet -->" | safeHTML }}
+ {{ $style := resources.Get "scss/style.scss" | toCSS | minify }}
+ <link href="{{ $style.Permalink }}" rel="stylesheet" media="screen"/>
+
+ {{ "<!--Favicon-->" | safeHTML }}
+ <link rel="shortcut icon" href="{{ `images/favicon.png` | absURL }}" type="image/x-icon">
+ <link rel="icon" href="{{ `images/favicon.png` | absURL }}" type="image/x-icon">
+
+
+ {{ with .Params.Image }}
+ <meta property="og:image" content="{{ . | absURL }}" />
+ {{ end }}
+ {{ template "_internal/opengraph.html" . }}
+ {{ template "_internal/google_analytics.html" . }}
+ {{ template "_internal/google_analytics_async.html" . }}
+
</head>
\ No newline at end of file |