Properly use partials for post list

This commit is contained in:
Christoffer Müller Madsen 2017-08-06 03:33:16 +02:00
parent c1d72b75e1
commit 673c6864df

View File

@ -1,19 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title>{{ .Site.Title }}</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1">
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<h1>Christoffer Müller Madsen</h1>
{{ partial "header.html" . }}
{{ partial "nav.html" . }}
<h1>Christoffer Müller Madsen</h1>
<h2>All writings</h2>
<ul>
{{ range first 10 .Data.Pages }}
{{ range .Data.Pages }}
<li><a href="{{ .Permalink }}">{{ .Title }} ({{ .Date.Format "January 2, 2006" }})</a></li>
{{ end }}
</ul>
</body>
</html>
{{ partial "footer.html" . }}