Barebones test site
This commit is contained in:
parent
ba03fa4473
commit
e2408cf277
15 changed files with 429 additions and 0 deletions
37
layouts/_default/baseof.html
Normal file
37
layouts/_default/baseof.html
Normal 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>
|
3
layouts/_default/home.html
Normal file
3
layouts/_default/home.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
{{ define "main" }}
|
||||
<h1>Hello world!</h1>
|
||||
{{ end }}
|
9
layouts/_default/single.html
Normal file
9
layouts/_default/single.html
Normal 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 }}
|
Loading…
Add table
Add a link
Reference in a new issue