diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-01-02 18:05:06 -0330 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-01-02 18:05:06 -0330 |
| commit | da7a80e34660456a12f882de7eeaf94ddaab5d44 (patch) | |
| tree | c11f6668f74bb2c74326920fa683c282ceed2e8b /layouts/page.html | |
| parent | 11f81b5e1c02f373fce8d5ac7021b509c3cf2292 (diff) | |
| download | samanthony.xyz-da7a80e34660456a12f882de7eeaf94ddaab5d44.zip | |
article: tools-i-use
Diffstat (limited to 'layouts/page.html')
| -rw-r--r-- | layouts/page.html | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/layouts/page.html b/layouts/page.html index 7e286c8..8b8eb16 100644 --- a/layouts/page.html +++ b/layouts/page.html @@ -1,9 +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> + {{- $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" -}} + {{- $dateHuman := .Date | time.Format "2006-01-02" -}} + <div> + <h1 class="title">{{ .Title }}</h1> + <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time> + </div> {{ .Content }} {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} |