Skip to content

Instantly share code, notes, and snippets.

@jwcastillo
Forked from ahuballah/master.blade.php
Last active August 27, 2015 22:03
Show Gist options
  • Save jwcastillo/0d8ca6e78e61966451fd to your computer and use it in GitHub Desktop.
Save jwcastillo/0d8ca6e78e61966451fd to your computer and use it in GitHub Desktop.
My master layout for Laravel based on the HTML5 BP.
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{{ $title }}</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
{{ HTML::style("/css/reset.css")}}
{{ HTML::style("/css/styles.css")}}
</head>
<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>
<![endif]-->
<!-- Add your site or application content here -->
<div id="container">
<!--section id="header"></section-->
<!--section id="nav"></section-->
<div id="content">
@yield('content')
</div>
<!--section id="footer"></section-->
</div>
{{HTML::script("/js/require.js");}}
<!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
<script>
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment