Files
blog/_includes/header.html
2016-01-17 23:18:07 +00:00

69 lines
3.4 KiB
HTML

<!DOCTYPE html>
<html lang="en" prefix="og: http://ogp.me/ns# twitter: http://ogp.me/ns/fb/twitter#">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{% if page.title != "Home" %}{{ page.title }} &ndash; {% endif %}{{ site.title }}</title>
<link href="http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css" />
<link href="{{ site.static_prefix }}/style/default-common.css" rel="stylesheet" type="text/css" />
<link href="{{ site.static_prefix }}/style/default-print.css" media="print" rel="stylesheet" type="text/css" />
<link href="/{{ site.baseurl }}/blog/atom.xml" type="application/atom+xml" rel="alternate" title="{{ site.title }}" />
{% if page.description %}
<meta name="description" content="{{ page.description }}" />
{% endif %}
{% if page.tags %}
<meta name="keywords" content="{{ page.tags|join:', ' }}" />
{% endif %}
<meta name="viewport" content="width=device-width">
<link href="{{ site.absolute }}/{{ site.baseurl }}{{ page.url|replace:'/index.html','/' }}" rel="canonical" />
<meta property="og:title" content="{% if page.title == 'Home' %}{{ site.title }}{% else %}{{ page.title }}{% endif %}" />
<meta property="og:url" content="{{ site.baseurl }}{% if page.url != '/index.html' %}{{ page.url }}{% endif %}?utm_campaign=ref&amp;utm_medium=def&amp;utm_source=opengraph" />
{% if page.description %}
<meta property="og:description" content="{{ page.description }}" />
{% endif %}
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '{{ site.analytics }}']);
_gaq.push(['_trackPageview']);
window.onload = function() {
var headers = {{ site.headers | implode }};
var header = headers[Math.floor(Math.random() * headers.length)];
document.getElementById('masthead').style.backgroundImage = "url('/asset/header/" + header + ".jpg')";
}
</script>
</head>
<body class="layout-{{ page.layout }}{% if page.body_class %} {{ page.body_class }}{% endif %}">
<header id="masthead" role="banner">
<a href="/{{ site.baseurl }}" title="{{ site.title }}" rel="home"></a>
</header>
<header id="navigation">
<div>
<ul class="screen-only">
<li><a href="/{{ site.baseurl }}/blog/">blog</a></li>
<li><a href="/{{ site.baseurl }}/gallery/">gallery</a></li>
<li><a href="/{{ site.baseurl }}/about.html">about</a></li>
</ul>
{% if page.print_blurb %}
<ul class="print-only">
<li>{{ page.print_blurb }}</li>
</ul>
{% endif %}
<div class="site-title">
<strong><a href="/{{ site.baseurl }}/">{{ site.title }}</a></strong>
</div>
<div class="meta screen-only">
<a href="{{ site.github }}">github</a>
&middot;
<a href="mailto:{{ site.email }}">email</a>
</div>
</div>
</header>
<article>