<!DOCTYPE HTML>
<html lang="{{ entry.lang if entry else conf.lang }}">

<head>
  {% block head -%}
  <meta charset="utf-8" />
  <title>{% block title %}{% endblock %}</title>
  <link media="all" href="{{ env.path + '/shadowplay.css' }}" rel="stylesheet" />
  <link href="/favicon.ico" rel="shortcut icon" />
    {% if 'sitemap' in env.views -%}
        <link href="{{ env.views.sitemap.path }}" type="application/xml" title="Sitemap">
    {%- endif%}
  <link href="{{ env.path + '/' }}" rel="home start" />
  <link href="{{ env.path + '/atom/' }}" type="application/atom+xml" rel="alternate" title="Atom Feed" />
  <link href="{{ env.path + '/rss/' }}" type="application/rss+xml" rel="alternate" title="RSS Feed" />
  <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  <![endif]-->
  {%- endblock %}
</head>

<body>
  <div id="main">
    <header>
      <div id="logo">
        <div id="logo_text">
          <!-- class="logo_colour", allows you to change the colour of the text -->
          <h1><a href="{{ env.path + '/' }}" rel="home start">{{ conf.title | first }}
              <span class="logo_colour">{{ conf.title | last }}</span>
          </a></h1>
          <h2>{{ conf.sitename }}</h2>
        </div>
      </div>
      <nav>
        <ul>
          <li><a href="{{ env.path + '/' }}" rel="home start">blog</a></li>
          <li><a href="{{ env.path + '/atom/' }}" rel="alternate">atom</a></li>
          <li><a href="{{ env.path + '/rss/' }}" rel="alternate">rss</a></li>
          <li><a href="{{ env.path + '/articles/' }}" rel="contents">articles</a></li>
          <li><a href="{{ env.path + '/about/' }}" tel="author me">about</a></li>
        </ul>
      </nav>
    </header>
    <div id="content_header"></div>
    <div id="site_content">
      <div class="sidebar">
        <!-- insert your sidebar items here -->
        <h3>Tags</h3>
        <ul>
        {% for tag in env.tag_cloud if tag.step < 2 %}
          <li class="tag-{{ tag.step }}"><a href="/tag/{{ tag.name | safeslug }}/" rel="tag">{{ tag.name }}</a></li>
        {% endfor %}
        </ul>
        <h3>Links</h3>
        <ul>
        {% for name, href in conf.blogroll %}
          <li><a href="{{ href }}">{{ name }}</a></li>
        {% endfor %}
        </ul>
      </div>
      <div id="content">
      {%- block content -%}
      {%- endblock -%}
      </div>
    </div>
    <div id="content_footer"></div>
    <footer>
      {% block footer %}
      {% endblock %}
      <p>written by <a href="mailto:{{ conf.email }}">{{ conf.author }}</a>
       | <a href="http://www.html5webtemplates.co.uk">design from HTML5webtemplates.co.uk</a></p>
    </footer>
  </div>
</body>
</html>
