summaryrefslogtreecommitdiffstats
path: root/src/components/Comment/Comment.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Comment/Comment.tsx')
-rw-r--r--src/components/Comment/Comment.tsx8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/Comment/Comment.tsx b/src/components/Comment/Comment.tsx
index 7214abe..6a4abce 100644
--- a/src/components/Comment/Comment.tsx
+++ b/src/components/Comment/Comment.tsx
@@ -44,7 +44,7 @@ const Comment = ({
const getApprovedComment = () => {
return (
<>
- <article className={styles.wrapper}>
+ <article className={styles.wrapper} id={`comment-${comment.commentId}`}>
<header className={styles.header}>
{comment.author.gravatarUrl && (
<div className={styles.avatar}>
@@ -59,7 +59,11 @@ const Comment = ({
</header>
<dl className={styles.date}>
<dt>{t`Published on:`}</dt>
- <dd>{getLocaleDate()}</dd>
+ <dd>
+ <Link href={`#comment-${comment.commentId}`}>
+ <a>{getLocaleDate()}</a>
+ </Link>
+ </dd>
</dl>
<div
className={styles.body}