diff options
Diffstat (limited to 'themes/JustZvan/layouts/posts')
| -rw-r--r-- | themes/JustZvan/layouts/posts/single.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/themes/JustZvan/layouts/posts/single.html b/themes/JustZvan/layouts/posts/single.html new file mode 100644 index 0000000..2ead5ce --- /dev/null +++ b/themes/JustZvan/layouts/posts/single.html @@ -0,0 +1,11 @@ +{{ define "main" }} + <article class="post-page"> + <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 }} + </article> +{{ end }}
\ No newline at end of file |