hugo-soresu

My fork of hugo-xmin

git clone git://git.shimmy1996.com/hugo-soresu.git
commit ed03167026d8f0848b9f0b1d1e4f65e6967df82a
parent b7a9514c28b8e23d5d0de5dec177ae47f15774b6
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Tue, 26 Jun 2018 17:44:07 -0500

Enclose publish date in <time> tag.

Diffstat:
Mlayouts/_default/single.html | 6++----
Mlayouts/partials/css/style.css | 4++++
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
@@ -1,10 +1,8 @@
 {{ partial "header.html" . }}
 <article>
   <header class="article-meta">
-    <hgroup>
-      <h1 class="title">{{ .Title }}</h1>
-      {{ if (lt 0 .Params.date) }}<h2 class="date">{{ .Date.Format "2006-01-02" }}</h2>{{ end }}
-    </hgroup>
+    <h1 class="title">{{ .Title }}</h1>
+    {{ if (lt 0 .Date) }}<time datetime={{ .Date.Format "2006-01-02T15:04:05-07:00" }}>{{ .Date.Format "2006-01-02" }}</time>{{ end }}
     <p class="terms">
       {{ range $key, $_ := .Site.Taxonomies }}
       {{ with ($.Param $key) }}
diff --git a/layouts/partials/css/style.css b/layouts/partials/css/style.css
@@ -15,6 +15,10 @@ body {
 }
 .menu, .article-meta, footer { text-align: center; }
 .title { font-size: 2em; line-height: 1.1em; }
+header time {
+    font-size: larger;
+    font-weight: bold;
+}
 hr { border: 1px dashed #ddd; }
 .subtitle {
     color: #700000;