summaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/PostMeta/PostMeta.tsx9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/components/PostMeta/PostMeta.tsx b/src/components/PostMeta/PostMeta.tsx
index ece355a..0b68d70 100644
--- a/src/components/PostMeta/PostMeta.tsx
+++ b/src/components/PostMeta/PostMeta.tsx
@@ -16,6 +16,7 @@ const PostMeta = ({
const { author, commentCount, dates, subjects, thematics, website } = meta;
const { asPath, locale } = useRouter();
const isThematic = () => asPath.includes('/thematique/');
+ const isArticle = () => asPath.includes('/article/');
const dateOptions: Intl.DateTimeFormatOptions = {
day: 'numeric',
@@ -120,7 +121,13 @@ const PostMeta = ({
{commentCount !== undefined && (
<div className={styles.item}>
<dt className={styles.term}>{t`Comments`}</dt>
- {getCommentsCount()}
+ <dd className={styles.description}>
+ {isArticle() ? (
+ <a href="#comments">{getCommentsCount()}</a>
+ ) : (
+ getCommentsCount()
+ )}
+ </dd>
</div>
)}
</dl>