diff options
Diffstat (limited to 'themes')
| -rw-r--r-- | themes/researcher/layouts/_default/single.html | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/themes/researcher/layouts/_default/single.html b/themes/researcher/layouts/_default/single.html index 2bc2b1e..58835f3 100644 --- a/themes/researcher/layouts/_default/single.html +++ b/themes/researcher/layouts/_default/single.html @@ -1,5 +1,13 @@ {{ define "main" }} <div class="container"> - {{ .Content }} +{{ if eq .Type "blog" }} + <span class="date">{{ .PublishDate.Format "January 2, 2006" }} - </span> + <span class="words">{{ .WordCount }} words - </span> + <span class="reading">{{ .ReadingTime }} minute read.</span> +{{ end }} +{{ .Content }} +{{ if eq .Type "blog" }} + <span class="lastmod">Last updated {{ .Lastmod.Format "Jan 2, 2006" }}</span> +{{ end }} </div> {{ end }} |