Skip to content

Commit c03cd77

Browse files
committed
Make permlink work in comments
1 parent 289c838 commit c03cd77

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Web/templates/simple/blog/_comment.tx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
<!-- Begin simple/blog/_comment.tx -->
22
<div class="card my-4">
33
<div class="card-body">
4+
<a name="comment_[% $comment.id %]"></a>
45
<div class="">
5-
<a href="#">u/[% $comment.author.username %]</a>
6+
<a href="#">[% $comment.author.username %]</a>
67
<small><span title="[% $comment.created_at %]">[% $comment.time_ago %]</span></small>
78
</div>
89
<div class="pt-4">
910
%% $comment.content
1011
</div>
1112
<br />
12-
<a class="card-link" data-bs-toggle="collapse" href="#replyForm[% $comment.id %]" role="button" aria-expanded="false" aria-controls="replyForm[% $comment.id %]">[Reply]</a>
13-
<a href="#" class="card-link">[Permlink]</a>
13+
<a class="card-link" data-bs-toggle="collapse" href="#replyForm[% $comment.id %]" role="button" aria-expanded="false" aria-controls="replyForm[% $comment.id %]">[Reply]</a>
14+
15+
<a href="[% $c.url_for( '#comment_' ~ $comment.id ) %]" class="card-link">[Permlink]</a>
1416
<div id="replyForm[% $comment.id %]" class="row mx-2 my-4 collapse">
1517
<form method="POST" action="[% $c.url_for( 'do_blog_comment' ) %]">
1618
<input type="hidden" name="parent_id" value="[% $comment.id %]" />

0 commit comments

Comments
 (0)