<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>{% block windowtitle %}{{ SITENAME }}{% endblock %}</title>
	<meta name="description" content="">
	<meta name="author" content="{{ AUTHOR }}">

	<!-- HTML5 shim, for IE6-8 support of HTML elements -->
	<!--[if lt IE 9]>
		<script src="{{ SITEURL }}/theme/html5.js"></script>
	<![endif]-->

	<!-- Styles -->
	<link href="{{ SITEURL }}/theme/bootstrap.min.css" rel="stylesheet">
	<link href="{{ SITEURL }}/theme/local.css" rel="stylesheet">
	<link href="{{ SITEURL }}/theme/pygments.css" rel="stylesheet">

    <!-- Feeds -->
    {% if FEED_ALL_ATOM %}
    <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" />
    {% endif %}
    {% if FEED_ALL_RSS %}
    <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
    {% endif %}

</head>
<body>
    <div class="container">
	<div class="navbar">
	  <div class="navbar-inner">
		<div class="container">
		  <a class="brand" href="{{ SITEURL }}/">{{ SITENAME }}</a>
			<ul class="nav">
				{% for title, link in MENUITEMS %}
					<li><a href="{{ link }}">{{ title }}</a></li>
				{% endfor %}
				{% if DISPLAY_PAGES_ON_MENU %}
					{% for page in PAGES %}
						<li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
					{% endfor %}
				{% endif %}
			 	{% for cat, null in categories %}
					<li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
					{% endfor %} 
			
			</ul>
			<p class="pull-right"><a href="{{ SITEURL }}/archives.html">[archives]</a> <a href="{{ SITEURL }}/tags.html">[tags]</a></p>
		</div>
	  </div>
	</div>

	<div class="row">
	    <div class="span3">
		<div class="well sidebar-nav">
		<!--
			<h3>Blogroll</h3>
			<ul>
				{% for name, link in LINKS %}
				<li><a href="{{ link }}">{{ name }}</a></li>
				{% endfor %}
			</ul>
			<div class="social">
			<h3>Social</h3>
			<ul>
				{% for name, link in SOCIAL %}
				<li><a href="{{ link }}">{{ name }}</a></li>
				{% endfor %}
			</ul>
			</div>
	       	-->
			<div class="tags">
			<h3>Tags</h3>
			<ul>
				{% for tag, articles in tags %}
				<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }} ({{ articles | length }})</a></li>
				{% endfor %}
			</ul>
			</div>
		</div>
	    </div>
	    <div class="span9">
	  	<div class="content">
			<!-- {% block indextitle %}<div class="page-header"><h1>{% block title %} {{ self.windowtitle() }} {% endblock %}</h1></div>{% endblock %} --!>
			{% block content %}{% endblock %}
		</div>
	    </div>
	</div>
		<footer>
		  <p>Powered by <a href="http://getpelican.com/">Pelican</a>. </p>
		  <p>&copy; {{ AUTHOR }}</p>
		</footer>
    </div>
</body>
</html>
