aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/index.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-05-09 18:19:38 +0200
committerArmand Philippot <git@armandphilippot.com>2022-05-09 19:41:02 +0200
commit0d59a6d2995b4119865271ed1908ede0bb96497c (patch)
tree67688e41b7aa253aa58cc08aa360431b07382f9d /src/pages/index.tsx
parent339c6957fe92c4ec1809159f09c55201d3794c18 (diff)
refactor: rewrite DescriptionList and Meta components
The meta can have different layout. The previous implementation was not enough to easily change the layout. Also, I prefer to restrict the meta types and it prevents me to repeat myself for the labels.
Diffstat (limited to 'src/pages/index.tsx')
-rw-r--r--src/pages/index.tsx12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index c965320..6108d2f 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -225,17 +225,7 @@ const HomePage: NextPage<HomeProps> = ({ recentPosts }) => {
return {
cover: post.cover,
id: post.slug,
- meta: [
- {
- id: 'publication',
- term: intl.formatMessage({
- defaultMessage: 'Published on:',
- description: 'HomePage: publication date label',
- id: 'pT5nHk',
- }),
- value: [post.dates.publication],
- },
- ],
+ meta: { publication: { date: post.dates.publication } },
title: post.title,
url: `/article/${post.slug}`,
};