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:
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> | #{{ $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>
{{- if (strings.HasSuffix ($.Site.Author.email | sha256) .email_hash) -}}
✦{{ else }}<code>{{ .email_hash | last 4 }}</code>
{{- end -}}
- <br/>{{ .time.Format "2006-01-02" -}}
- | <a href="#{{ $hash }}">#{{ $hash }}</a>
- {{- if not ($.Scratch.Get "is_feed") -}}
- | <a href="#comment" onclick="reply({{ $hash }})">
- {{- i18n "hyperskip-reply" -}}
- </a>
- {{- end -}}
</header>
{{- with (.content | markdownify ) }}
{{ if not ( findRE "<[h|p][^>]*>" . ) }}<p>{{ . }}</p>{{ else }}{{ . }}{{ end }}