Added vanilla blog components

This commit is contained in:
Thomas Smith 2023-03-27 11:01:47 -04:00
parent 979fda0db1
commit 8b89f20d9d
3 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ .Title }}</title>
</head>
<body>
<h1>{{ .Title }}</h1>
<ul>
{{ range .Pages }}
<li>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
<span>{{ .Date.Format "2006-01-02" }}</span>
</li>
{{ end }}
</ul>
<a href="/">Back to home</a>
</body>
</html>

View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ .Title }}</title>
</head>
<body>
<h1>{{ .Title }}</h1>
<p>{{ .Date.Format "2006-01-02" }}</p>
{{ .Content }}
<a href="{{ "blog" | relURL }}">Back to blog</a>
</body>
</html>