Initial commit

This commit is contained in:
Joe Roe 2021-03-05 10:44:42 +01:00
commit 70f2d625fa
47 changed files with 1115 additions and 0 deletions

View file

@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
{{- partial "head.html" . -}}
</head>
<body>
<div class="page">
<header class="page__header">
{{- partial "header.html" . -}}
</header>
<section class="page__body">
{{- block "main" . }}{{- end }}
</section>
<section class="page__aside">
<div class="aside__about">
{{- partial "about.html" . -}}
</div>
<hr>
<div class="aside__content">
{{- block "aside" . }}{{- end }}
</div>
</section>
<footer class="page__footer">
{{- partial "footer.html" . -}}
</footer>
</div>
</body>
</html>

1
layouts/_default/li.html Normal file
View file

@ -0,0 +1 @@
<li><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></li>

View file

@ -0,0 +1,12 @@
{{ define "main" }}
<h1 id="{{ .Title | urlize }}">{{ .Title | markdownify }}</h2>
{{ .Content }}
<ul>
{{ range .Pages }}
{{ .Render "li" }}
{{ end }}
</ul>
{{ end }}

View file

@ -0,0 +1,14 @@
{{ define "main" }}
<header class="content__header">
<h1>{{ .Title | markdownify }}</h1>
</header>
<div class="content__body">
{{ .Content }}
</div>
<footer class="content__footer"></footer>
{{ end }}
{{define "aside" }}
<p>{{ .Params.description }}</p>
<p>By {{ .Params.author }}, {{ .Date.Format "2 January 2006" }}</p>
{{ end }}