Properly use partials for post list
This commit is contained in:
parent
c1d72b75e1
commit
673c6864df
|
@ -1,19 +1,10 @@
|
||||||
<!DOCTYPE html>
|
{{ partial "header.html" . }}
|
||||||
<html>
|
{{ partial "nav.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>
|
<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>
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user