<!DOCTYPE html>{% capture title %}{% if page.title == 'Home' %} {{ site.title }} | {{ site.description }}{% else %}{{ page.title }} | {{ site.title }}{% endif %}{% endcapture %}{% if page.author %}{% assign auth = site.data.authors %}{% else %}{% assign auth = site.data.authors %}{% endif %}{% assign copyname = site.data.authors.name %}{% capture year %}{{ site.time | date: '%Y' }}{% endcapture %}{% capture copyright %}Copyright &copy; {% unless site.meta.copyright.year and year == site.meta.copyright.year %}{{ site.meta.copyright.year }} - {% endunless %}{{ year }} {{ copyname }}{% endcapture %} <html xmlns='www.w3.org/1999/xhtml' prefix='og: ogp.me/ns# fb: www.facebook.com/2008/fbml# article: ogp.me/ns/article#' lang='en-GB'>

<head prefix='og: http://ogp.me/ns#'>
    <title>{{title}}</title>

    <meta charset='utf-8'>
    <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
    <meta http-equiv='X-Clacks-Overhead' content='GNU Terry Pratchett'>
    <meta name='author' content='{{auth.name}}'>
    <meta name='viewport' content='width=device-width, initial-scale=1'>

    <link href='https://fonts.googleapis.com/css?family=Indie+Flower|Lato:400,400i,900,900i&subset=latin-ext' rel='stylesheet'>
    <link rel='stylesheet' href='/assets/css/style.css'>
    <link rel='alternate' href='{{site.url}}/feed.xml' type='application/rss+xml' title='{{ site.title }}'>
    <link rel='author' href='https://plus.google.com/{{auth.google}}'>

    <script defer src='/assets/scripts/vendor/modernizr-2.6.2-respond-1.1.0.min.js'></script>
    {% if jekyll.environment == 'production' and site.google.analytics %}<script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

      ga('create', '{{site.google.analytics}}', 'auto');
      ga('send', 'pageview');
    </script>{% endif %}

    {% seo title=false %}
</head>

<body>
    <header role='banner' itemscope itemtype='//schema.org/WPHeader'>
        <h1 class='site-title'>{% if site.logo %}{% if site.logo contains 'svg' %}<object type='image/svg+xml' data='{{ site.logo }}' title='{{ site.title }}' name='{{ site.title }} Logo'>{{ site.title }}</object>{% else %}<img src='{{ site.logo }}' title='{{ site.title }}' alt='{{ site.title }} Logo' />{% endif %}{% else %}{{ site.title }}{% endif %}</h1>
        {% if site.description %}<p class='site-description'>{{ site.description }}</p>{% endif %}
    </header>

    <nav itemscope itemtype='//schema.org/SiteNavigationElement'>
        {% include nav.html links=site.data.links class='main-menu' %}
    </nav><!-- #primary-navigation -->

    <main itemscope itemtype='//schema.org/Blog'>

        {{ content }}

    </main><!-- #main-content -->

    <footer role='contentinfo' itemscope itemtype='//schema.org/WPFooter'>{% assign author = site.data.authors[site.author] %}
        <div class='social'>
            {% if author.facebook %}<span class='fa-stack fa-2x'>
                <a href='//www.facebook.com/{{author.facebook}}' title='Facebook'>
                    <i class='fa fa-circle fa-stack-2x'></i>
                    <i class='fa fa-facebook fa-stack-1x fa-inverse'></i>
                </a>
            </span>{% endif %}
            {% if author.twitter %}<span class='fa-stack fa-2x'>
                <a href='//twitter.com/{{author.twitter}}' title='Twitter'>
                    <i class='fa fa-circle fa-stack-2x'></i>
                    <i class='fa fa-twitter fa-stack-1x fa-inverse'></i>
                </a>
            </span>{% endif %}
            {% if author.github %}<span class='fa-stack fa-2x'>
                <a href='//github.com/{{author.github}}' title='GitHub'>
                    <i class='fa fa-circle fa-stack-2x'></i>
                    <i class='fa fa-github-alt fa-stack-1x fa-inverse'></i>
                </a>
            </span>{% endif %}
            {% if author.email %}<span class='fa-stack fa-2x'>
                <a href='mai&#108;to&#58;{{author.email}}' title='Email'>
                    <i class='fa fa-circle fa-stack-2x'></i>
                    <i class='fa fa-envelope fa-stack-1x fa-inverse'></i>
                </a>
            </span>{% endif %}
            <span class='fa-stack fa-2x'>
                <a href='/feed.xml' title='RSS Feed'>
                    <i class='fa fa-circle fa-stack-2x feed'></i>
                    <i class='fa fa-rss fa-stack-1x fa-inverse'></i>
                </a>
            </span>
        </div>{% if site.meta %}
        <span class='site-meta'>
            {% if site.meta.copyright %}<small class='copyright'>{{ copyright }}</small>{% endif %}
            {% if site.meta.powered-by %}<small>Powered by <a href='//jekyllrb.com/' title='Jekyll &bull; Simple, blog-aware, static sites'>Jekyll</a></small> {% endif %}
            {% if site.meta.hosting %}<small>Hosted at <a href='{{ site.meta.hosting.link }}' title='{{ site.meta.hosting.name }}'>{{ site.meta.hosting.name }}</a></small>{% endif %}
        </span>{% endif %}
    </footer><!-- #page-footer -->

    {% include foot-scripts.html %}
</body>

</html>