diff options
author | Jan Raasch <jan@janraasch.com> | 2020-10-02 15:57:36 +0200 |
---|---|---|
committer | Jan Raasch <jan@janraasch.com> | 2020-10-02 15:57:36 +0200 |
commit | ed4cda1ac463692dc3f1ccaa810109fc98963da8 (patch) | |
tree | 48ef723b1f5bb13294d43f5039e6cd7dc61a014f /layouts/_default | |
parent | 39dbab8f8a8e9d1b3be4a0b8044604954182d4a5 (diff) | |
download | hugo-bearcub-ed4cda1ac463692dc3f1ccaa810109fc98963da8.tar.gz hugo-bearcub-ed4cda1ac463692dc3f1ccaa810109fc98963da8.tar.bz2 |
fix: improve accessibility on mobile
Fixes #6.
To be honest I did not think about this at all. I simply copied the code from the original »Bear Blog«
https://github.com/HermanMartinus/bearblog/blob/master/templates/base.html#L7
It seems like iOS ignores the declarations of user-scalable, minimum-scale, and maximum-scale, as of iOS 10, see https://sitebulb.com/hints/mobile-friendly/the-viewport-meta-tag-prevents-the-user-from-scaling/ so we might as well remove this.
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/baseof.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index ae6f718..6bce2dc 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -4,7 +4,7 @@ <head> <meta http-equiv="X-Clacks-Overhead" content="GNU Terry Pratchett" /> <meta charset="utf-8"> - <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,user-scalable=0" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> {{- partial "favicon.html" . -}} <title>{{- block "title" . }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{- end }}</title> |