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,9 +1,9 @@
{{ define "main" }}
<article>
{{ $dateMachine := .Lastmod | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Lastmod | time.Format "2006-01-02" }}
{{ $dateMachine := .Lastmod | time.Format "2006-01-02T15:04:05-07:00" }} {{
$dateHuman := .Lastmod | time.Format "2006-01-02" }}
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
<br>
<br />
<h1>{{ .Title }}</h1>
@ -11,5 +11,4 @@
{{ .Content }}
</article>
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
{{ end }}
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} {{ end }}