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

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