Initial commit with bare bones layout and a single post

This commit is contained in:
Campbell Alden 2022-08-17 17:55:15 +09:00
commit 7f987f04ed
18 changed files with 120 additions and 0 deletions

0
layouts/404.html Normal file
View file

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<main id="content">
{{- block "main" . }}{{- end }}
</main>
{{- partial "footer.html" . -}}
</body>
</html>

View file

@ -0,0 +1,17 @@
{{ define "main" }}
<article>
<header>
<h1>{{.Title}}</h1>
</header>
<!-- "{{.Content}}" pulls from the markdown content of the corresponding _index.md -->
{{.Content}}
</article>
<ul>
<!-- Ranges through content/posts/*.md -->
{{ range .Pages }}
<li>
<a href="{{.Permalink}}">{{.Date.Format "2006-01-02"}} | {{.Title}}</a>
</li>
{{ end }}
</ul>
{{ end }}

View file

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

View file

@ -0,0 +1,12 @@
<div>
<div>
<h2>
<a href="{{ .RelPermalink }}">
{{ .Title }}
</a>
</h2>
<div>
{{ .Summary }}
</div>
</div>
</div>

View file

10
layouts/index.html Normal file
View file

@ -0,0 +1,10 @@
{{ define "main" }}
<div>
{{ .Content }}
</div>
<div>
{{ range first 10 .Site.RegularPages }}
{{ .Render "summary"}}
{{ end }}
</div>
{{end}}

View file

@ -0,0 +1,2 @@
<footer>
</footer>

View file

@ -0,0 +1,5 @@
<head>
<title>{{ .Title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🎥</text></svg>">
</head>

View file

@ -0,0 +1,3 @@
<header>
<h1>CaAlden: Films</h1>
</header>