treefmt: fix config, add prettier-plugin-go-template
This commit is contained in:
parent
6ccec6f792
commit
9e8f680c52
10 changed files with 137 additions and 85 deletions
|
|
@ -1,14 +1,15 @@
|
|||
{{ define "main" }}
|
||||
<article>
|
||||
{{ $dateMachine := .Lastmod | time.Format "2006-01-02T15:04:05-07:00" }} {{
|
||||
$dateHuman := .Lastmod | time.Format "2006-01-02" }}
|
||||
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
|
||||
<br />
|
||||
<article>
|
||||
{{ $dateMachine := .Lastmod | time.Format "2006-01-02T15:04:05-07:00" }}
|
||||
{{ $dateHuman := .Lastmod | time.Format "2006-01-02" }}
|
||||
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
|
||||
<br />
|
||||
|
||||
<h1>{{ .Title }}</h1>
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
<p class="lead">{{ .Description }}</p>
|
||||
<p class="lead">{{ .Description }}</p>
|
||||
|
||||
{{ .Content }}
|
||||
</article>
|
||||
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} {{ end }}
|
||||
{{ .Content }}
|
||||
</article>
|
||||
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
|
||||
{{ end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue