Add partial layouts for header and footer

This commit is contained in:
Philipp Oppermann
2016-02-14 15:31:01 +01:00
parent bccf9f9166
commit fc6653d780
3 changed files with 52 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
</main>
<footer class="footer">
<small>
&copy; <time datetime="{{ .Site.LastChange.Format "2006" }}">
{{ .Site.LastChange.Format "2006" }}
</time>. All rights reserved. <a href="TODO">Contact</a>
</small>
</footer>
</body>
</html>

View File

@@ -0,0 +1,25 @@
<head>
<meta charset="UTF-8">
<!-- Enable responsiveness on mobile devices-->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-Frame-Options" content="sameorigin">
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
<title>
{{ .Title }}{{ if not .IsHome }} &middot; {{ .Site.Title }}{{end}}
</title>
<link rel="canonical" href="{{ .Permalink }}">
{{ if .RSSlink }}
<link href="{{ .RSSlink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
<link href="{{ .RSSlink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}
<!-- CSS -->
<link rel="stylesheet" href="/css/poole.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/main.css">
</head>

View File

@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
{{ partial "head.html" . }}
<body>
<div class="container content">
<header class="masthead">
<h3 class="masthead-title">
<a href="/" title="Home">{{ .Site.Title }}</a>
<small>{{ replace .Site.Params.subtitle " " "&nbsp;" | safeHTML }}</small>
</h3>
</header>
<main>