flake: add treefmt, reorganize flake, format using treefmt
This commit is contained in:
parent
967b613d91
commit
12aa7125b5
17 changed files with 187 additions and 123 deletions
|
|
@ -1,10 +1,8 @@
|
|||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ range .Pages }}
|
||||
<a href="{{ .RelPermalink }}" style="display:block">
|
||||
{{ define "main" }} {{ .Content }} {{ range .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>
|
||||
|
|
@ -12,5 +10,4 @@
|
|||
<p class="lead">{{ .Description }}</p>
|
||||
</div>
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }} {{ end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue