Created
October 30, 2010 20:00
-
-
Save twmills/655683 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| !!! 5 | |
| /[if lt IE 7] <html lang="en" class="no-js ie6"> | |
| /[if IE 7 ] <html lang="en" class="no-js ie7"> | |
| /[if IE 8 ] <html lang="en" class="no-js ie8"> | |
| /[if IE 9 ] <html lang="en" class="no-js ie9"> | |
| <!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]--> | |
| %head | |
| %meta{:charset => "utf-8"}/ | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| %title | |
| %meta{:content => "", :name => "description"}/ | |
| %meta{:content => "", :name => "author"}/ | |
| / Mobile viewport optimized: j.mp/bplateviewport | |
| %meta{:name => "viewport", :content => "width=device-width; initial-scale=1.0; maximum-scale=1.0;"} | |
| / Place favicon.ico and apple-touch-icon.png in the root of your domain and delete these references | |
| %link{:href => "/favicon.ico", :rel => "shortcut icon"}/ | |
| %link{:href => "/apple-touch-icon.png", :rel => "apple-touch-icon"}/ | |
| / CSS : implied media="all" | |
| = stylesheet_link_tag 'style', 'screen' | |
| / Uncomment if you are specifically targeting less enabled mobile browsers | |
| / | |
| %link{:href => "css/handheld.css?v=1", :media => "handheld", :rel => "stylesheet"}/ | |
| = javascript_include_tag 'modernizr-1.5.min.js' | |
| %body | |
| #container | |
| %header | |
| #main | |
| = yield | |
| %footer | |
| / ! end of #container | |
| / Javascript at the bottom for fast page loading | |
| / Grab Google CDN's jQuery. fall back to local if necessary | |
| %script{:src => "//ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"} | |
| :javascript | |
| !window.jQuery && document.write(unescape('%3Cscript src="/javascripts/jquery-1.4.2.min.js"%3E%3C/script%3E')) | |
| = javascript_include_tag 'plugins.js' | |
| = javascript_include_tag 'script.js' | |
| /[if lt IE 7 ] | |
| <script src="/javascripts/dd_belatedpng.js"></script> | |
| <script> | |
| \ //fix those png IMGs and .png_bg background-images | |
| \ DD_belatedPNG.fix('img, .png_bg'); | |
| </script> | |
| / | |
| 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) { | |
| var g = d.createElement(t), | |
| s = d.getElementsByTagName(t)[0]; | |
| g.async = true; | |
| g.src = ('https:' == location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | |
| s.parentNode.insertBefore(g, s); | |
| })(document, 'script'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment