diff options
Diffstat (limited to 'layouts/posts/page.html')
| -rw-r--r-- | layouts/posts/page.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/layouts/posts/page.html b/layouts/posts/page.html new file mode 100644 index 0000000..dd21496 --- /dev/null +++ b/layouts/posts/page.html @@ -0,0 +1,7 @@ +{{ define "main" }} + <h1>{{ .Title }}</h1> + {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} + {{ $dateHuman := .Date | time.Format "2006-01-02" }} + <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time> + {{ .Content }} +{{ end }} |
