summaryrefslogtreecommitdiffstats
path: root/layouts/page.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/page.html')
-rw-r--r--layouts/page.html11
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" .) }}