hugo-hyperskip

Email-powered static comments for Hugo

git clone git://git.shimmy1996.com/hugo-hyperskip.git
commit 4bed6e9ae1060a39f7136e8d86024dc7e5a5a893
parent d4b8be1ea26eccce91388c97e3697599ba24e815
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Tue,  7 Jan 2020 21:11:21 -0600

Keep link to comment and only remove the reply link

Diffstat:
MREADME.org | 2+-
Mlayouts/partials/list_comment.html | 6++----
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/README.org b/README.org
@@ -7,7 +7,7 @@ Insert comment section with
 {{ partial "hyperskip.html" . }}
 #+END_SRC
 
-For best compatibility with web feeds like RSS or ATOM, use the following =<nav>=-less version to avoid use of =onlick= and anchors
+For best compatibility with web feeds like RSS or ATOM, use the following to avoid including =<script>= and =<form>=
 #+BEGIN_SRC html
 {{ partial "hyperskip_feed.html" . }}
 #+END_SRC
diff --git a/layouts/partials/list_comment.html b/layouts/partials/list_comment.html
@@ -17,13 +17,11 @@
     </h3>
     <nav><p>
         {{- .time.Format "2006-01-02" -}}
+        &nbsp;|&nbsp;<a href="#{{ $hash }}">#{{ $hash }}</a>
         {{- if not ($.Scratch.Get "is_feed") -}}
-        &nbsp;|&nbsp;<a href="#{{ $hash }}">#
-          {{- $hash -}}
-        </a>&nbsp;|&nbsp;<a href="#comment" onclick="reply({{ $hash }})">
+        &nbsp;|&nbsp;<a href="#comment" onclick="reply({{ $hash }})">
           {{- i18n "hyperskip-reply" -}}
         </a>
-        {{- else -}}&nbsp;|&nbsp;#{{ $hash }}
         {{- end -}}
     </p></nav>
   </header>