LoginSignup
1
1

More than 5 years have passed since last update.

Haml HTML5 Boilerplate

Posted at
index.haml
!!!
/[if lt IE 7] <html class="no-js lt-ie9 lt-ie8 lt-ie7">
/[if IE 7] <html class="no-js lt-ie9 lt-ie8">
/[if IE 8] <html class="no-js lt-ie9">
/[if gt IE 8] <!--> <html class="no-js"> <!--
%head
  %meta{:charset => "utf-8"}
  %meta{:content => "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible"}
  %title
  %meta{:content => "", :name => "description"}
  %meta{:content => "width=device-width", :name => "viewport"}
  / Place favicon.ico and apple-touch-icon.png in the root directory
  %link{:href => "css/normalize.css", :rel => "stylesheet"}
  %link{:href => "css/main.css", :rel => "stylesheet"}
  %script{:src => "js/vendor/modernizr-2.6.2.min.js"}
%body
  /[if lt IE 7]
    <p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
  / Add your site or application content here
  %p Hello world! This is HTML5 Boilerplate.
  %script{:src => "//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"}
  :javascript
    window.jQuery || document.write('<script src="js/vendor/jquery-1.9.1.min.js"><\/script>')
  %script{:src => "js/plugins.js"}
  %script{:src => "js/main.js"}
  / Google Analytics: change 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.src='//www.google-analytics.com/ga.js';
    s.parentNode.insertBefore(g,s)}(document,'script'));
!= "</html>"

Version

HTML5 Boilerplate Version 4.2.0

References

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1