PageRenderTime 19ms CodeModel.GetById 11ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/hyde/layouts/basic/layout/base.j2

http://github.com/hyde/hyde
Jinja | 101 lines | 88 code | 13 blank | 0 comment | 2 complexity | 7fbcec1a569da3d7819b31e67e62545f MD5 | raw file
  1<!doctype html>
  2<!-- https://github.com/paulirish/html5-boilerplate/blob/master/index.html -->
  3<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
  4<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
  5<!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]-->
  6<!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]-->
  7<!--[if (gte IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
  8<head>
  9  {% block starthead %}{% endblock starthead %}
 10  <meta charset="{{ resource.meta.charset }}">
 11
 12  <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
 13       Remove this if you use the .htaccess -->
 14  <meta http-equiv="X-UA-Compatible" content="{{ resource.meta.compatibility }}">
 15
 16  <!-- encoding must be specified within the first 512 bytes
 17        www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#charset -->
 18
 19  <!-- meta element for compatibility mode needs to be before
 20        all elements except title & meta
 21        msdn.microsoft.com/en-us/library/cc288325(VS.85).aspx -->
 22  <!-- Chrome Frame is only invoked if meta element for
 23        compatibility mode is within the first 1K bytes
 24        code.google.com/p/chromium/issues/detail?id=23003 -->
 25
 26  <title>{% block title %}{{ resource.meta.title }}{% endblock %}</title>
 27  <meta name="description" content="{{ resource.meta.description }}">
 28  <meta name="author" content="{{ resource.meta.author }}">
 29
 30  <!--  Mobile viewport optimized: j.mp/bplateviewport -->
 31  <meta name="viewport" content="{{ resource.meta.viewport }}">
 32
 33  {% block favicons %}
 34  <!-- Place favicon.ico & apple-touch-icon.png
 35        in the root of your domain and delete these references -->
 36  <link rel="shortcut icon" href="{{ media_url('/images/favicon.ico') }}">
 37  <link rel="apple-touch-icon" href="{{ media_url('/images/apple-touch-icon.png') }}">
 38  {% endblock favicons %}
 39
 40  {% block css %}
 41  <link rel="stylesheet" href="{{ media_url('css/site.css') }}">
 42  <link rel="stylesheet" href="{{ media_url('css/syntax.css') }}">
 43  {% endblock css %}
 44
 45  {% block headjs %}
 46  <!-- All JavaScript at the bottom, except for Modernizr which
 47        enables HTML5 elements & feature detects -->
 48    <script src="{{ media_url('js/libs/modernizr-1.7.min.js') }}"></script>
 49  {% endblock headjs %}
 50  {% block endhead %}{% endblock endhead %}
 51</head>
 52<body id="{{ resource.meta.id if resource.meta.id else resource.slug }}">
 53  {% block content %}
 54  <div id="container">
 55      {% block container %}
 56      <div id="main" role="main">
 57          <header class="banner clearfix">
 58          {% block header -%}
 59            <h1>BASIC</h1>
 60            <h3>A hyde website</h3>
 61          {%- endblock %}
 62          {% block nav %}
 63          {% from "macros.j2" import render_nav with context %}
 64          {{ render_nav(menu, 'main_nav') }}
 65          {% endblock %}
 66          </header>
 67          <section class="content">
 68          {% block main %}
 69          {% endblock main %}
 70          </section>
 71      </div>
 72    {% endblock container %}
 73  </div> <!--! end of #container -->
 74  <footer>
 75      Powered by <a href="http://ringce.com/hyde">hyde</a>.
 76  </footer>
 77  {% endblock content%}
 78  {% block js %}
 79  <!-- Javascript at the bottom for fast page loading -->
 80  {% block jquery %}
 81  <!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if necessary -->
 82  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js"></script>
 83  <script>window.jQuery || document.write('<script src="js/libs/jquery-1.5.1.min.js">\x3C/script>')</script>
 84  {% endblock jquery %}
 85
 86  {% block scripts %}
 87  {% endblock scripts %}
 88
 89
 90  <!--[if lt IE 7 ]>
 91    <script src="js/libs/dd_belatedpng.js"></script>
 92    <script>DD_belatedPNG.fix('img, .png_bg'); // Fix any <img> or .png_bg bg-images. Also, please read goo.gl/mZiyb </script>
 93  <![endif]-->
 94
 95  {% block analytics %}
 96  {% include "analytics.j2" %}
 97  {% endblock analytics %}
 98
 99  {% endblock js %}
100</body>
101</html>