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:
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>
- <code>{{ .email_hash | last 10 }}</code>
+ {{- if eq (.email_hash | last 10) ($.Site.Author.email | md5 | last 10) -}}
+ ✦
+ {{- else -}}
+ <code>{{- .email_hash | last 10 -}}</code>
+ {{- end -}}
+
<span style="float:right;">
<a href="#{{ $hash }}">#{{ $hash }}</a> [ <a href="#comment" onclick="reply({{ $hash }})">
{{- i18n "hyperskip-reply" -}}