aboutsummaryrefslogtreecommitdiff
path: root/www/layouts/_default/single.html
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-02-26 19:36:40 +0800
committerYuqian Yang <crupest@crupest.life>2025-02-26 19:36:40 +0800
commit311dfdcc6b5712dd6085287ada5ebe48e02116c4 (patch)
tree37053cfe69bc7a115d849f61223cf51dedb99e80 /www/layouts/_default/single.html
parent0c885ba1bf30ce8308880f926be85b6f5a499fa6 (diff)
downloadcrupest-311dfdcc6b5712dd6085287ada5ebe48e02116c4.tar.gz
crupest-311dfdcc6b5712dd6085287ada5ebe48e02116c4.tar.bz2
crupest-311dfdcc6b5712dd6085287ada5ebe48e02116c4.zip
fix(www): css load blink, code block bg, links.
Diffstat (limited to 'www/layouts/_default/single.html')
-rw-r--r--www/layouts/_default/single.html8
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" . }}