Commits

Adam Pritchard  committed e5c5b49

Fixed some HTML validation warnings/errors

  • Participants
  • Parent commits 9c82732

Comments (0)

Files changed (4)

File Website/_locales/en/messages.json

   "sponsor-header-sponsored-by": {
     "message": "Sponsored by"
   },
+  "sponsor-banner-alt-text": {
+    "message": "Sponsor banner",
+    "description": "alt text for an image"
+  },
   "sponsor-para-1": {
     "message": "Everyone who loads Psiphon will see the landing page whenever they connect with the software. Sponsorship opportunities are available by the week for this page."
   },

File Website/plugins/pathtoroot/pathtoroot.plugin.coffee

                 # Prepare
                 documentUrl = document.get('url')
                 depth = documentUrl.split('/').length - 1 # leading / gives us one extra
-                pathToRoot = ['.']
+                pathToRoot = []
                 if depth > 1
                     pathToRoot.push('..') for i in [0..depth-2]
                 #console.log documentUrl + ' ' + pathToRoot.join('/')

File Website/src/layouts/default.html.eco

     <meta http-equiv="refresh" content="1; url=<%= @relativeToRoot "/#{@document.language}.html" %>">
   <% end %>
 
-  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+  <meta http-equiv="content-type" content="text/html; charset=utf-8">
 
   <!-- Use the .htaccess and remove these lines to avoid edge case issues.
      More info: h5bp.com/i/378 -->
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
 
   <!-- Our site title and description -->
   <title><%= @getPreparedTitle() %></title>
-  <meta name="description" content="<%= @getPreparedDescription() %>" />
-  <meta name="keywords" content="<%= @getPreparedKeywords() %>" />
-  <meta name="author" content="<%= @site.author or '' %>" />
+  <meta name="description" content="<%= @getPreparedDescription() %>">
+  <meta name="keywords" content="<%= @getPreparedKeywords() %>">
+  <meta name="author" content="<%= @site.author or '' %>">
 
   <!-- Output DocPad produced meta elements -->
   <%- @getBlock('meta').toHTML() %>
 
   <!-- Mobile viewport optimized: h5bp.com/viewport -->
   <!-- And: http://getbootstrap.com/css/ -->
-  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
 
   <!-- Icons -->
   <link rel="shortcut icon" href="<%= @document.pathToRoot %>/images/icons/favicon.ico">

File Website/src/partials/header.html.eco

       <%= @tt 'sponsor-header-sponsored-by' %>
     </div>
     <div class="col-md-12 sponsor-banner">
-      <img src="<%= @document.pathToRoot %>/images/sponsor-banner.png" data-link-file="<%= @document.pathToRoot %>/images/sponsor-banner-link.json" class="img-responsive">
+      <img src="<%= @document.pathToRoot %>/images/sponsor-banner.png" data-link-file="<%= @document.pathToRoot %>/images/sponsor-banner-link.json" class="img-responsive" alt="<%= @tt 'sponsor-banner-alt-text' %>">
     </div>
     <hr class="sponsor-separator"/>
   </div>