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
commit8c7102cbfe81c97a17f079ce42938f81e0f8a6f8 (patch)
treef42f553c4c8a559d616cf5a1b521c4ca0568037a /www/layouts/_default/single.html
parent046c71c4c282b7c9dce781c8a1f31c68a1515854 (diff)
downloadcrupest-8c7102cbfe81c97a17f079ce42938f81e0f8a6f8.tar.gz
crupest-8c7102cbfe81c97a17f079ce42938f81e0f8a6f8.tar.bz2
crupest-8c7102cbfe81c97a17f079ce42938f81e0f8a6f8.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" . }}