diff options
Diffstat (limited to 'layouts/post/single.html')
-rw-r--r-- | layouts/post/single.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/post/single.html b/layouts/post/single.html index c5476fb..104653b 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -1,6 +1,7 @@ {{ define "main" }} <h1 class="post-title">{{ .Title }}</h1> + {{ $dateFormat := $.Site.Params.dateFormat | default "Jan 2, 2006" }} <strong>Publish date: </strong>{{ .PublishDate.Format $dateFormat }} <br> @@ -10,6 +11,11 @@ <a href="{{ "tags/" | absURL }}{{ . | urlize }}">{{ . }}</a> {{ end }} {{ end }} + +{{ if ne .Params.toc false }} + {{ partial "toc.html" . }} +{{ end }} + {{ .Content }} {{ end }}
\ No newline at end of file |