Initial commit

This commit is contained in:
2025-01-07 13:02:12 -07:00
commit 00474fdb13
5 changed files with 69 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>
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<header>
<h1>{{ .Site.Title }}</h1>
</header>
<main>
{{ block "main" . }}{{ end }}
</main>
<footer>
<p>&copy; {{ now.Year }} {{ .Site.Author }}</p>
</footer>
</body>
</html>

View File

@@ -0,0 +1,12 @@
{{ define "main" }}
<section>
<h2>Posts</h2>
<ul>
{{ range .Pages }}
<li>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>
</section>
{{ end }}

View File

@@ -0,0 +1,6 @@
{{ define "main" }}
<article>
<h2>{{ .Title }}</h2>
<div>{{ .Content }}</div>
</article>
{{ end }}