Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/janraasch/hugo-bearblog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Raasch <jan@janraasch.com>2020-10-02 16:57:36 +0300
committerJan Raasch <jan@janraasch.com>2020-10-02 16:57:36 +0300
commited4cda1ac463692dc3f1ccaa810109fc98963da8 (patch)
tree48ef723b1f5bb13294d43f5039e6cd7dc61a014f
parent39dbab8f8a8e9d1b3be4a0b8044604954182d4a5 (diff)
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.
-rw-r--r--layouts/_default/baseof.html2
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>