mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-13 15:31:01 +00:00
Fix comment link
This commit is contained in:
parent
f0e7ea5640
commit
bac373a818
1 changed files with 4 additions and 2 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
@if let Some(comm) = Some(&comment_tree.comment) {
|
||||
@if let Ok(author) = comm.get_author(ctx.0) {
|
||||
@* comment-@comm.id is used for link *@
|
||||
<div class="comment u-comment h-cite" id="comment-@comm.id">
|
||||
<main class="content">
|
||||
<header>
|
||||
|
@ -15,8 +16,9 @@
|
|||
<small>@author.fqn</small>
|
||||
</a>
|
||||
<p class="dt-published" datetime="@comm.creation_date.format("%F %T")">
|
||||
@if let Some(ref ap_url) = comm.ap_url {
|
||||
<a class="u-url" href="@ap_url">@comm.creation_date.format("%B %e, %Y %H:%M")</a>
|
||||
@if let Ok(post) = comm.get_post(ctx.0) {
|
||||
@* comment-@comm.id is same to this div's id attribute *@
|
||||
<a class="u-url" href="@post.ap_url#comment-@comm.id">@comm.creation_date.format("%B %e, %Y %H:%M")</a>
|
||||
}
|
||||
</p>
|
||||
|
||||
|
|
Loading…
Reference in a new issue