Browse Source

Merge pull request #125 from fhemberger/fix/a11y-language

a11y: Add HTML lang attribute and utf8 encoding meta tag
closed-social-glitch-2
Eugen 7 years ago
committed by GitHub
parent
commit
0a6b5e2c17
4 changed files with 7 additions and 5 deletions
  1. +1
    -2
      app/views/layouts/application.html.haml
  2. +2
    -1
      public/404.html
  3. +2
    -1
      public/422.html
  4. +2
    -1
      public/500.html

+ 1
- 2
app/views/layouts/application.html.haml View File

@ -1,7 +1,6 @@
!!! 5 !!! 5
%html
%html{:lang => 'en'}
%head %head
%meta{:content => 'text/html; charset=UTF-8', 'http-equiv' => 'Content-Type'}/
%meta{:charset => 'utf-8'}/ %meta{:charset => 'utf-8'}/
%meta{:name => 'viewport', :content => 'width=device-width, initial-scale=1'}/ %meta{:name => 'viewport', :content => 'width=device-width, initial-scale=1'}/
%meta{'http-equiv' => 'X-UA-Compatible', :content => 'IE=edge'}/ %meta{'http-equiv' => 'X-UA-Compatible', :content => 'IE=edge'}/

+ 2
- 1
public/404.html View File

@ -1,6 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html>
<html lang="en">
<head> <head>
<meta charset="utf-8">
<title>The page you were looking for doesn't exist (404)</title> <title>The page you were looking for doesn't exist (404)</title>
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
<style> <style>

+ 2
- 1
public/422.html View File

@ -1,6 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html>
<html lang="en">
<head> <head>
<meta charset="utf-8">
<title>The change you wanted was rejected (422)</title> <title>The change you wanted was rejected (422)</title>
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
<style> <style>

+ 2
- 1
public/500.html View File

@ -1,6 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html>
<html lang="en">
<head> <head>
<meta charset="utf-8">
<title>We're sorry, but something went wrong (500)</title> <title>We're sorry, but something went wrong (500)</title>
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
<style> <style>

Loading…
Cancel
Save