Added partials to list.html

This commit is contained in:
Thomas Smith 2023-03-27 11:29:32 -04:00
parent 8b89f20d9d
commit 73a19b741b
2 changed files with 32 additions and 15 deletions

View file

@ -2,4 +2,6 @@
title: "Blog" title: "Blog"
description: "A collection of my thoughts, insights, and experiences." description: "A collection of my thoughts, insights, and experiences."
date: 2023-03-27 date: 2023-03-27
menu: "main"
weight: 5
--- ---

View file

@ -1,20 +1,35 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head>
<meta charset="UTF-8"> {{ partial "head.html" . }}
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ .Title }}</title>
</head>
<body> <body>
<h1>{{ .Title }}</h1>
<ul> {{ partial "navbar.html" . }}
{{ range .Pages }}
<li> <main style="height:100vh;">
<a href="{{ .RelPermalink }}">{{ .Title }}</a> <div class="container">
<span>{{ .Date.Format "2006-01-02" }}</span> <div class="row">
</li> <div class="col">
{{ end }} <h1>{{ .Title }}</h1>
</ul> <ul>
<a href="/">Back to home</a> {{ range .Pages }}
<li>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
<span>{{ .Date.Format "2006-01-02" }}</span>
</li>
{{ end }}
</ul>
<a href="/">Back to home</a>
</div>
</div>
</div>
</main>
<footer>
{{- partial "footer-content.html" . -}}
{{- partial "footer.html" . -}}
</footer>
</body> </body>
</html> </html>