flake: add treefmt, reorganize flake, format using treefmt

This commit is contained in:
Jan Kremer 2024-07-02 20:29:39 +02:00
parent 967b613d91
commit 12aa7125b5
No known key found for this signature in database
17 changed files with 187 additions and 123 deletions

View file

@ -1,11 +1,9 @@
{{ define "main" }}
{{ .Content }}
{{ $pages := .Paginate (where .Site.RegularPages "Type" "ne" "page") }}
{{ range $pages.Pages }}
<a href="{{ .RelPermalink }}" style="display:block">
{{ define "main" }} {{ .Content }} {{ $pages := .Paginate (where
.Site.RegularPages "Type" "ne" "page") }} {{ range $pages.Pages }}
<a href="{{ .RelPermalink }}" style="display: block">
<div class="list">
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format "2006-01-02" }}
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} {{
$dateHuman := .Date | time.Format "2006-01-02" }}
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
<h2>{{ .Title }}</h2>
@ -13,5 +11,4 @@
<p class="lead">{{ .Description }}</p>
</div>
</a>
{{ end }}
{{ end }}
{{ end }} {{ end }}