templates/project/index.html.haml in html5-boilerplate-0.2.6 vs templates/project/index.html.haml in html5-boilerplate-0.3.0
- old
+ new
@@ -3,25 +3,20 @@
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
-%html.no-js{ :lang => "en" }
+%html.no-js
<!--<![endif]-->
%head
%meta{ :charset => "utf-8" }/
-#
Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess
%meta{ :content => "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible" }/
- -# encoding must be specified within the first 512 bytes www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#charset
-
- -# meta element for compatibility mode needs to be before all elements except title & meta msdn.microsoft.com/en-us/library/cc288325(VS.85).aspx
- -# Chrome Frame is only invoked if meta element for compatibility mode is within the first 1K bytes code.google.com/p/chromium/issues/detail?id=23003
-
%title
%meta{ :content => "", :name => "description" }/
%meta{ :content => "", :name => "author" }/
-# Mobile viewport optimized: j.mp/bplateviewport
@@ -36,35 +31,31 @@
-# Uncomment if you are specifically targeting less enabled mobile browsers
-# %link{ :href => "css/handheld.css?v=1", :media => "handheld", :rel => "stylesheet" }/
-# All JavaScript at the bottom, except for Modernizr which enables HTML5 elements & feature detects
- %script{ :src => "js/modernizr-1.6.min.js" }
+ %script{ :src => "js/modernizr.min.js" }
- %body
+ %body{ :lang => "en" }
#container
%header
#main
%footer
-#
Javascript at the bottom for fast page loading
Grab Google CDN's jQuery. fall back to local if necessary
%script{ :src => "http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" }
:javascript
- !window.jQuery && document.write(unescape('%3Cscript src="js/jquery-1.4.4.min.js"%3E%3C/script%3E'))
+ !window.jQuery && document.write(unescape('%3Cscript src="js/jquery.min.js"%3E%3C/script%3E'))
%script{ :src => "js/plugins.js?v=1" }
%script{ :src => "js/script.js?v=1" }
/[if lt IE 7 ]
:javascript
$.getScript("js/dd_belatedpng.js",function(){ DD_belatedPNG.fix('img, .png_bg'); });
- -# yui profiler and profileviewer - remove for production
- %script{ :src => "js/profiling/yahoo-profiling.min.js?v=1" }
- %script{ :src => "js/profiling/config.js?v=1" }
-
-# asynchronous google analytics: mathiasbynens.be/notes/async-analytics-snippet
-# change the UA-XXXXX-X to be your site's ID
:javascript
var _gaq = [['_setAccount', 'UA-XXXXX-X'], ['_trackPageview']];
(function(d, t) {