feat: initial import

This commit is contained in:
Iain Learmonth 2026-01-10 13:42:14 +00:00
commit 03ab1091b1
50 changed files with 1146 additions and 0 deletions

23
layouts/posts/page.html Normal file
View file

@ -0,0 +1,23 @@
{{ define "main" }}
<h1 class="page__title">{{ .Title }}</h1>
{{ $dateMachine := .Lastmod | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Lastmod | time.Format ":date_long" }}
{{ $dateMachineP := .PublishDate | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHumanP := .PublishDate | time.Format ":date_long" }}
{{ if .Params.author }}
<div class="page__author">{{ printf (T "By") .Params.author }}</div>
{{ end }}
<div class="page__date">
{{ T "Published" }} <time datetime="{{ $dateMachineP }}">{{ $dateHumanP }}</time>
<br/>
{{ T "Updated" }} <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
<div class="page__tag">
{{ partial "page-tags.html" (dict "taxonomy" "tags" "page" .) }}
</div>
</div>
{{ .Content }}
{{ end }}

View file

@ -0,0 +1,11 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ range .Pages }}
<section>
<h2 class="no-bottom-margin"><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
<h4 class="no-top-margin">{{ .PublishDate }}</h4>
{{ .Summary }}
</section>
{{ end }}
{{ end }}