hugo-hyperskip

Email-powered static comments for Hugo

git clone git://git.shimmy1996.com/hugo-hyperskip.git
commit 73b77281f235b52c0f31cc67bcee03945802f445
parent 3b27d08486c172c171bad8c6a8c86fdddf372113
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Sat,  4 Jan 2020 21:44:54 -0600

Also display truncated email hash

Diffstat:
Mlayouts/partials/list_comment.html | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/layouts/partials/list_comment.html b/layouts/partials/list_comment.html
@@ -5,13 +5,14 @@
 <hr/>
 <div id="{{ $hash }}">
   <b>{{ or .name (i18n "hyperskip-name-default") }}</b>&nbsp;
-  <a href="#{{ $hash }}">#{{ $hash }}</a>&nbsp;
+  <code>{{ .email_hash | last 10 -}}</code>&nbsp;
   <span style="float:right;">
-    {{- $timestamp -}}
-    &nbsp;&#91;&nbsp;<a href="#comment" onclick="reply({{ $hash }})">
+    <a href="#{{ $hash }}">#{{ $hash }}</a>&nbsp;&#91;&nbsp;<a href="#comment" onclick="reply({{ $hash }})">
       {{- i18n "hyperskip-reply" -}}
     </a>&nbsp;&#93;
   </span>
+  <br/>
+  {{ $timestamp }}
   <div style="margin-top:1em;">{{ .content | htmlEscape | markdownify }}</div>
 </div>
 {{ end }}