Barebones test site

This commit is contained in:
Eryn Wells 2024-06-06 21:01:40 -07:00
parent ba03fa4473
commit e2408cf277
15 changed files with 429 additions and 0 deletions

View file

@ -0,0 +1,37 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<title>Test Site</title>
{{ with (partial "system_css.html" .) }}
<link rel=stylesheet href={{ .Permalink }}>
{{ end }}
</head>
<body>
<main>
{{ block "main" . }}{{ end }}
</main>
</body>
<style>
main {
h1 {
font-size: var(--font-size-xxl);
margin: 0;
margin-block: var(--spacing-l);
}
h2 {
font-size: var(--font-size-xl);
margin: 0;
margin-block: var(--spacing-l);
}
h2:has(+ p) { margin-block-end: var(--spacing-s); }
p {
margin: 0;
margin-block-end: var(--spacing-l);
}
}
</style>
</html>

View file

@ -0,0 +1,3 @@
{{ define "main" }}
<h1>Hello world!</h1>
{{ end }}

View file

@ -0,0 +1,9 @@
{{ define "main" }}
<header>
<h1>{{ .Title }}</h1>
{{ if .Date }}
<time>{{ .Date | time.Format "2006.01.02" }}</time>
{{ end }}
</header>
{{ .Content }}
{{ end }}