Skip to content

Instantly share code, notes, and snippets.

@jasonhofer
Last active August 3, 2017 13:34
Show Gist options
  • Save jasonhofer/8c5a0ad22290fd98ad4b9824aecaedc5 to your computer and use it in GitHub Desktop.
Save jasonhofer/8c5a0ad22290fd98ad4b9824aecaedc5 to your computer and use it in GitHub Desktop.
<!doctype html>
{% block html_tag %}<html lang="{% block lang 'en' %}">{% endblock %}
<head>
<meta charset="{% block charset 'utf-8' %}">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>{% block title '' %}</title>
<meta name="description" content="{% block description '' %}">
<meta name="viewport" content="width=device-width, initial-scale=1">
{% block head %}{% endblock %}
{% block favicon %}
<link rel="shortcut icon" type="image/x-icon" href="{{ asset('favicon.ico') }}">
<link rel="apple-touch-icon" type="image/png" href="{{ asset('apple-touch-icon.png') }}">
{% endblock %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/normalize.css') }}">
<link rel="stylesheet" href="{{ asset('css/main.css') }}">
{% endblock %}
{% block head_javascripts %}
<!--[if lt IE 9]>
<script src="{{ asset('js/vendor/html5-3.6-respond-1.4.2.min.js') }}"></script>
<![endif]-->
{% endblock %}
{% block head_bottom %}{% endblock %}
</head>
{% block body_tag %}<body>{% endblock %}
{% block browser_upgrade %}
<!--[if lt IE 8]>
<p class="browserupgrade">
You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.
</p>
<![endif]-->
{% endblock %}
{% block body %}
<!-- Add your site or application content here -->
<p>Hello world! This is HTML5 Boilerplate.</p>
{% endblock %}
{% block javascripts %}
<script src="//code.jquery.com/jquery-1.12.4.min.js"></script>
<script>window.jQuery || document.write('<script src="{{ asset ('js/vendor/jquery-1.12.4.min.js') }}"><\/script>')</script>
<script src="{{ asset('js/plugins.js') }}"></script>
<script src="{{ asset('js/main.js') }}"></script>
{% endblock %}
{% block analytics %}
{% if analytics.google.id is defined %}
<script>
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src='https://www.google-analytics.com/analytics.js';
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create','{{ analytics.google.id }}','auto');ga('send','pageview');
{%- if analytics.google.extended is defined and analytics.google.extended -%}
ga('require', 'displayfeatures');
{%- endif %}
</script>
{% endif %}
{% endblock %}
{% block body_bottom %}{% endblock %}
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment