hugo-hyperskip

Email-powered static comments for Hugo

git clone git://git.shimmy1996.com/hugo-hyperskip.git
commit 6d9476c53195fcb8880f556c816885d7be00d883
parent 4bd441d4d66dd8c86bb6e290b73cfcf65673fb43
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Tue,  7 Jan 2020 20:47:07 -0600

Add <p> and display time for feeds

Diffstat:
Mlayouts/partials/list_comment.html | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/layouts/partials/list_comment.html b/layouts/partials/list_comment.html
@@ -15,14 +15,14 @@
       &nbsp;<code>{{ .email_hash | last 4 }}</code>
       {{- end -}}
     </h3>
-    {{ if not ($.Scratch.Get "is_feed") }}
-    <nav>
+    <nav><p>
       {{- .time.Format "2006-01-02" -}}
+      {{ if not ($.Scratch.Get "is_feed") }}
       &nbsp;|&nbsp;<a href="#{{ $hash }}">#
         {{- $hash -}}
       </a>&nbsp;|&nbsp;<a href="#comment" onclick="reply({{ $hash }})">
         {{- i18n "hyperskip-reply" -}}
-      </a>
+      </a></p>
     </nav>
     {{ end }}
   </header>