summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Whitlock <adam@adamwhitlock.com>2022-01-09 17:28:44 -0600
committerAdam Whitlock <adam@adamwhitlock.com>2022-01-09 17:28:44 -0600
commita27f871d8cb306d7bef56fa0a1df0e8b84103103 (patch)
tree90b6efd659997cdd0413c46a19a52b2abfa0d06a
parentc89ea0304f4a48ff9ded5c6f3b8f5883eb913e7f (diff)
Fixed date on posts and index
-rw-r--r--layouts/_default/single.html8
-rw-r--r--layouts/index.html3
2 files changed, 6 insertions, 5 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 4ac5d36..0947162 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -13,11 +13,11 @@
<div class="columns">
<div class="column">
<div class="content">
- <p class="title is-3">{{.Page.Title | title }}</p>
+ <h1 class="title is-3">{{.Page.Title | title }}</h1>
+ <h2 class="subtitle is-5"><time>{{ .Date.Format "Jan 2, 2006" }}</time></h2>
+ {{ $dateFormat := .Site.Params.dateFormat | default "January 2, 2006"}}{{ if ne .Lastmod .PublishDate }}, last updated on {{ .Lastmod.Format $dateFormat }}{{ end }}
<p class="subtitle is-4">{{.Page.Description}}</p>
- {{ $dateFormat := .Site.Params.dateFormat | default "January 2, 2006"}}
- <p class="date">Published on {{ .PublishDate.Format $dateFormat }}{{ if ne .Lastmod .PublishDate }}, last updated on {{ .Lastmod.Format $dateFormat }}
- {{ end }}
+ <p class="date">Published on {{ .PublishDate.Format $dateFormat }}
</p>
{{ .Content }}
</div>
diff --git a/layouts/index.html b/layouts/index.html
index 5f5b88d..e2888db 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -32,8 +32,9 @@
<div class="columns">
<div class="column">
<div class="content">
- <h1 class="title"><a class="" href="{{ .RelPermalink }}"> {{ .Title | title }}</a></h1>
+ <h1 class="title is-3"><a class="" href="{{ .RelPermalink }}"> {{ .Title | title }}</a></h1>
<h2 class="subtitle is-5"><time>{{ .Date.Format "Jan 2, 2006" }}</time></h2>
+ <p class="subtitle is-4">{{.Page.Description}}</p>
<p>{{ .Summary }}</p>
{{ if .Truncated }}
<div>