diff options
author | Zachary Betz <zwbetz@gmail.com> | 2019-02-26 23:51:43 +0300 |
---|---|---|
committer | Zachary Betz <zwbetz@gmail.com> | 2019-02-26 23:51:43 +0300 |
commit | 031dea3482e3767de453dd69bf24ba0cc94c410b (patch) | |
tree | 3df5e7ff3ae68bd7328f751a0e66ed7e5931bb90 | |
parent | d1618631fdbea7c9cce4fdea5861f41223f9d096 (diff) |
Add post tags
-rw-r--r-- | layouts/post/single.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/layouts/post/single.html b/layouts/post/single.html new file mode 100644 index 0000000..2022bd0 --- /dev/null +++ b/layouts/post/single.html @@ -0,0 +1,15 @@ +{{ define "main" }} + +<h1>{{ .Title }}</h1> +{{ $dateFormat := $.Site.Params.dateFormat | default "Jan 2, 2006" }} +<strong>Publish date: </strong>{{ .PublishDate.Format $dateFormat }} +<br> +{{ with .Params.tags }} + <strong>Tags: </strong> + {{ range . }} + <a href="{{ "tags/" | absURL }}{{ . | urlize }}">{{ . }}</a> + {{ end }} +{{ end }} +{{ .Content }} + +{{ end }}
\ No newline at end of file |