diff options
Diffstat (limited to 'www/layouts/_default/single.html')
-rw-r--r-- | www/layouts/_default/single.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/www/layouts/_default/single.html b/www/layouts/_default/single.html index 83297cf..1f267eb 100644 --- a/www/layouts/_default/single.html +++ b/www/layouts/_default/single.html @@ -10,7 +10,13 @@ {{ partial "nav.html" . }} <h1 class="post-title">{{ .Title }}</h1> <hr/> - <p class="post-info"><span class="created">{{ partial "date.html" .Date }}</span> <span class="last-updated">Last updated: {{ partial "date.html" .Lastmod }}</span></p> + <p class="post-info"> + <span class="created">{{ partial "date.html" .Date }}</span> | + <span class="words">{{ .WordCount }} words</span> + {{ if ne .Lastmod .Date }} + <span class="last-updated">Last updated: {{ partial "date.html" .Lastmod }}</span> + {{ end}} + </p> {{ .Content }} <hr class="end-hr"/> {{ partial "nav.html" . }} |