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> {{ partial "header.html" . }}
<html> {{ partial "nav.html" . }}
<head> <h1>Christoffer Müller Madsen</h1>
<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>
<h2>All writings</h2> <h2>All writings</h2>
<ul> <ul>
{{ range first 10 .Data.Pages }} {{ range .Data.Pages }}
<li><a href="{{ .Permalink }}">{{ .Title }} ({{ .Date.Format "January 2, 2006" }})</a></li> <li><a href="{{ .Permalink }}">{{ .Title }} ({{ .Date.Format "January 2, 2006" }})</a></li>
{{ end }} {{ end }}
</ul> </ul>
</body> {{ partial "footer.html" . }}
</html>