hugo-hyperskip

Email-powered static comments for Hugo

git clone git://git.shimmy1996.com/hugo-hyperskip.git
commit 76a749e3f003fc5c1f9b92b8375e27f5875511ca
parent 4f3facf6d49ee3c53d45c9fe947b65971d9ea924
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Sat,  4 Jan 2020 22:01:14 -0600

Give site owner a special indicator

Diffstat:
Mlayouts/partials/list_comment.html | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/layouts/partials/list_comment.html b/layouts/partials/list_comment.html
@@ -5,7 +5,12 @@
 <hr/>
 <div id="{{ $hash }}">
   <b>{{ or .name (i18n "hyperskip-name-default") }}</b>&nbsp;
-  <code>{{ .email_hash | last 10 }}</code>&nbsp;
+  {{- if eq (.email_hash | last 10) ($.Site.Author.email | md5 | last 10) -}}
+  ✦
+  {{- else -}}
+  <code>{{- .email_hash | last 10 -}}</code>
+  {{- end -}}
+  &nbsp;
   <span style="float:right;">
     <a href="#{{ $hash }}">#{{ $hash }}</a>&nbsp;&#91;&nbsp;<a href="#comment" onclick="reply({{ $hash }})">
       {{- i18n "hyperskip-reply" -}}