aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/polaris/layouts/_default/single.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/polaris/layouts/_default/single.html')
-rw-r--r--themes/polaris/layouts/_default/single.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/themes/polaris/layouts/_default/single.html b/themes/polaris/layouts/_default/single.html
index ef44984..21b247d 100644
--- a/themes/polaris/layouts/_default/single.html
+++ b/themes/polaris/layouts/_default/single.html
@@ -1,5 +1,11 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
- {{ with .Date }}<p><em>Written {{ . | time.Format "Jan 02 2006" }}.</em></p>{{ end }}
+ {{ if (eq .Section "posts") }}
+ {{ with .Param "lastmod" }}
+<p>
+ <em>Last modified {{ . | time.Format "Jan 02 2006" }}.</em>
+</p>
+ {{ end }}
+ {{ end }}
{{ .Content }}
{{ end }}