aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/polaris
diff options
context:
space:
mode:
Diffstat (limited to 'themes/polaris')
-rw-r--r--themes/polaris/layouts/_default/now.html10
-rw-r--r--themes/polaris/layouts/_default/single.html4
2 files changed, 7 insertions, 7 deletions
diff --git a/themes/polaris/layouts/_default/now.html b/themes/polaris/layouts/_default/now.html
index bb77eaf..5bd01c0 100644
--- a/themes/polaris/layouts/_default/now.html
+++ b/themes/polaris/layouts/_default/now.html
@@ -1,8 +1,8 @@
{{ define "main" }}
- <h1>{{ .Title }}</h1>
+<h1>{{ .Title }}</h1>
{{ .Content }}
- <p>
- Last updated {{ .Date | time.Format "Jan 02 2006" }}.
- <a href="https://nownownow.com/about">What the heck is a “now page”?</a>
- </p>
+<p>
+ {{ with .Date }}Last updated {{ . | time.Format "Jan 02 2006" }}.{{ end }}
+ <a href="https://nownownow.com/about">What the heck is a “now page”?</a>
+</p>
{{ end }}
diff --git a/themes/polaris/layouts/_default/single.html b/themes/polaris/layouts/_default/single.html
index d87f112..ef44984 100644
--- a/themes/polaris/layouts/_default/single.html
+++ b/themes/polaris/layouts/_default/single.html
@@ -1,5 +1,5 @@
{{ define "main" }}
- <h1>{{ .Title }}</h1>
- <p><em>Written {{ .Date | time.Format "Jan 02 2006" }}.</em></p>
+<h1>{{ .Title }}</h1>
+ {{ with .Date }}<p><em>Written {{ . | time.Format "Jan 02 2006" }}.</em></p>{{ end }}
{{ .Content }}
{{ end }}