commit a434a5459d8cd6cae20a0e375aa1e0b38187b9ec
parent f8ebe506094912fdfbb3fd274d2dd3af4eaa3ecc
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Sat, 30 Jul 2022 09:51:14 -0500
Move to use css instead of white space
Diffstat:
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/layouts/partials/list_comment.html b/layouts/partials/list_comment.html
@@ -7,15 +7,19 @@
{{ $timestamp := .time.Format "2006-01-02T15:04:05-07:00" }}
{{ $hash := print .name $timestamp | md5 | last 7 }}
{{ $name := or .name (i18n "hyperskip-name-default") }}
-<article id="{{ $hash }}">
+<article class="e-content top-border" id="{{ $hash }}">
<header>
- <a href="#{{ $hash }}">{{ $timestamp }}</a>
- {{- if not ($.Scratch.Get "is_feed") -}}
- | <a href="#comment" onclick="reply({{ $hash }},{{ $name }})">
- {{- i18n "hyperskip-reply" -}}
- </a>
+ <nav>
+ <span class="menu">
+ <a class="entry" href="#{{ $hash }}">{{ $timestamp }}</a>
+ <span class="entry"> </span>
+ </span>
+ {{- if not ($.Scratch.Get "is_feed") -}}
+ <a class="menu-right" href="#comment" onclick="reply({{ $hash }},{{ $name }})">
+ {{- i18n "hyperskip-reply" -}}
+ </a>
+ </nav>
{{ end }}
- <br/>
<b>{{ $name }}</b>
{{- if (strings.HasSuffix ($.Site.Author.email | sha256) .email_hash) -}}
✦{{ else }}<code>{{ .email_hash | last 4 }}</code>