Init Hugo template

This commit is contained in:
Hoernschen 2024-05-24 22:01:53 +02:00
parent 0c5e1a6fa2
commit 6938e212ba
Signed by: hoernschen
GPG key ID: 37591FAF4E6D3462
24 changed files with 283 additions and 0 deletions

View file

@ -0,0 +1,10 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
{{ .Content }}
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
{{ end }}