hugo-hyperskip

Email-powered static comments for Hugo

git clone git://git.shimmy1996.com/hugo-hyperskip.git
commit 2cb6943b6dd9b8dcda7693a968d5346e621f7312
parent 203fefd64078b9b6e6894a556932787aa21aa2f3
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Sun, 17 May 2020 10:19:48 -0500

Modify comment header layout

Diffstat:
Mlayouts/partials/list_comment.html | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/layouts/partials/list_comment.html b/layouts/partials/list_comment.html
@@ -8,17 +8,17 @@
 {{ $hash := print .name $timestamp | md5 | last 7 }}
 <article id="{{ $hash }}">
   <header>
+    <a href="#{{ $hash }}">{{ $timestamp }}</a>&nbsp;|&nbsp;#{{ $hash }}
+    {{ if not ($.Scratch.Get "is_feed") }}
+    <span style="float:right">
+      <a href="#comment" onclick="reply({{ $hash }})">{{- i18n "hyperskip-reply" -}}</a>
+    </span>
+    {{ end }}
+    <br/>
     <b>{{- or .name (i18n "hyperskip-name-default") }}</b>&nbsp;
     {{- if (strings.HasSuffix ($.Site.Author.email | sha256) .email_hash) -}}
     ✦{{ else }}<code>{{ .email_hash | last 4 }}</code>
     {{- end -}}
-    <br/>{{ .time.Format "2006-01-02" -}}
-    &nbsp;|&nbsp;<a href="#{{ $hash }}">#{{ $hash }}</a>
-    {{- if not ($.Scratch.Get "is_feed") -}}
-    &nbsp;|&nbsp;<a href="#comment" onclick="reply({{ $hash }})">
-      {{- i18n "hyperskip-reply" -}}
-    </a>
-    {{- end -}}
   </header>
   {{- with (.content | markdownify ) }}
   {{ if not ( findRE "<[h|p][^>]*>" . ) }}<p>{{ . }}</p>{{ else }}{{ . }}{{ end }}