<!DOCTYPE html>
<html>
	<head>
    <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
    <meta content="utf-8" http-equiv="encoding">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>Tovi Jaeschke-Rogers's Homepage</title>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico"/>
		<link rel="stylesheet" type="text/css" href="/css/main.css">
		<link href='https://fonts.googleapis.com/css?family=Average|Montserrat' rel='stylesheet' type='text/css'>
		<link rel="stylesheet" href="/css/prism.css">
		<script src="/js/prism.js"></script>
	  <script type="text/javascript" src="/js/script.js"></script>
    <script type="text/javascript" src="/js/code_resize.js"></script>
	</head>
	<body>
    {{ template "header.gohtml" . }}
		<div class="container">
      {{ template "sidebar.gohtml" . }}
			<div class="main">
        {{ if eq .PageView "index-intro.gohtml" }}
          {{ template "index-intro.gohtml" . }}
        {{ else if eq .PageView "post-list.gohtml" }}
          {{ template "post-list.gohtml" . }}
        {{ else if eq .PageView "post.gohtml" }}
          {{ template "post.gohtml" . }}
        {{ else if eq .PageView "index-links.gohtml" }}
          {{ template "index-links.gohtml" . }}
        {{ else if eq .PageView "error.gohtml" }}
          {{ template "error.gohtml" . }}
        {{ end }}
			</div>
		</div>
		<footer>
			<a href="mailto:tovi@strng.io">tovi@strng.io</a>
      <p>Last updated: {{ FormatTimestamp .LastUpdatedAt }}</p>
		</footer>
	</body>
</html>
