about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--config.toml1
-rw-r--r--themes/researcher/layouts/_default/single.html10
2 files changed, 10 insertions, 1 deletions
diff --git a/config.toml b/config.toml
index a8dec18..7dfa49f 100644
--- a/config.toml
+++ b/config.toml
@@ -2,6 +2,7 @@ baseURL = 'https://baitinq.ml'
 languageCode = 'en-us'
 title = 'Baitinq'
 enableRobotsTXT = true
+enableGitInfo = true
 
 theme = "researcher"
 
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 }}