commit: 0a6b5e2c17be11c431d5b5b3d188db7e5021d914
parent: dd03118098d342398f91b56bd2f27d370bc5b661
Author: Eugen <eugen@zeonfederated.com>
Date: Wed, 2 Nov 2016 11:04:27 +0100
Merge pull request #125 from fhemberger/fix/a11y-language
a11y: Add HTML lang attribute and utf8 encoding meta tag
Diffstat:
4 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml
@@ -1,7 +1,6 @@
!!! 5
-%html
+%html{:lang => 'en'}
%head
- %meta{:content => 'text/html; charset=UTF-8', 'http-equiv' => 'Content-Type'}/
%meta{:charset => 'utf-8'}/
%meta{:name => 'viewport', :content => 'width=device-width, initial-scale=1'}/
%meta{'http-equiv' => 'X-UA-Compatible', :content => 'IE=edge'}/
diff --git a/public/404.html b/public/404.html
@@ -1,6 +1,7 @@
<!DOCTYPE html>
-<html>
+<html lang="en">
<head>
+ <meta charset="utf-8">
<title>The page you were looking for doesn't exist (404)</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<style>
diff --git a/public/422.html b/public/422.html
@@ -1,6 +1,7 @@
<!DOCTYPE html>
-<html>
+<html lang="en">
<head>
+ <meta charset="utf-8">
<title>The change you wanted was rejected (422)</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<style>
diff --git a/public/500.html b/public/500.html
@@ -1,6 +1,7 @@
<!DOCTYPE html>
-<html>
+<html lang="en">
<head>
+ <meta charset="utf-8">
<title>We're sorry, but something went wrong (500)</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<style>