diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-05-18 22:47:53 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-05-18 22:47:53 +0200 |
| commit | 806004ab79ac4e1cb49cef93ab3f35a08c5c82b5 (patch) | |
| tree | 4328293c3d8eea327c3ea7803aae045315c8f41b /src/pages | |
| parent | 30d3489ca15b3ec16b93c312b0f517cd1bead1cd (diff) | |
chore: add total articles on thematic pages
Diffstat (limited to 'src/pages')
| -rw-r--r-- | src/pages/thematique/[slug].tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pages/thematique/[slug].tsx b/src/pages/thematique/[slug].tsx index 9586f77..fbe50fc 100644 --- a/src/pages/thematique/[slug].tsx +++ b/src/pages/thematique/[slug].tsx @@ -54,6 +54,7 @@ const ThematicPage: NextPageWithLayout<ThematicPageProps> = ({ const headerMeta: PageLayoutProps['headerMeta'] = { publication: { date: dates.publication }, update: dates.update ? { date: dates.update } : undefined, + total: articles ? articles.length : undefined, }; const { website } = useSettings(); |
