diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-05-23 19:32:42 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-05-23 20:53:58 +0200 |
| commit | c51b5d9a5f217f8aa59c4bdcb04eb3c87f5129b3 (patch) | |
| tree | a4ce7f77c2b1742119eebf818d9b97db7ed1e310 /src/pages/blog | |
| parent | 5ebd7c14f7303a0feb8ec1d902ecd0e287d929c3 (diff) | |
fix: ensure all topics/thematics have the base url
Diffstat (limited to 'src/pages/blog')
| -rw-r--r-- | src/pages/blog/index.tsx | 8 | ||||
| -rw-r--r-- | src/pages/blog/page/[number].tsx | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/pages/blog/index.tsx b/src/pages/blog/index.tsx index cfd6f8c..3956308 100644 --- a/src/pages/blog/index.tsx +++ b/src/pages/blog/index.tsx @@ -153,8 +153,9 @@ const BlogPage: NextPageWithLayout<BlogPageProps> = ({ <LinksListWidget key="thematics-list" items={getLinksListItems( - thematicsList.map(getPageLinkFromRawData), - 'thematic' + thematicsList.map((thematic) => + getPageLinkFromRawData(thematic, 'thematic') + ) )} title={thematicsListTitle} level={2} @@ -162,8 +163,7 @@ const BlogPage: NextPageWithLayout<BlogPageProps> = ({ <LinksListWidget key="topics-list" items={getLinksListItems( - topicsList.map(getPageLinkFromRawData), - 'topic' + topicsList.map((topic) => getPageLinkFromRawData(topic, 'topic')) )} title={topicsListTitle} level={2} diff --git a/src/pages/blog/page/[number].tsx b/src/pages/blog/page/[number].tsx index 78b1db4..b5efd27 100644 --- a/src/pages/blog/page/[number].tsx +++ b/src/pages/blog/page/[number].tsx @@ -148,8 +148,9 @@ const BlogPage: NextPageWithLayout<BlogPageProps> = ({ <LinksListWidget key="thematics-list" items={getLinksListItems( - thematicsList.map(getPageLinkFromRawData), - 'thematic' + thematicsList.map((thematic) => + getPageLinkFromRawData(thematic, 'thematic') + ) )} title={thematicsListTitle} level={2} @@ -157,8 +158,7 @@ const BlogPage: NextPageWithLayout<BlogPageProps> = ({ <LinksListWidget key="topics-list" items={getLinksListItems( - topicsList.map(getPageLinkFromRawData), - 'topic' + topicsList.map((topic) => getPageLinkFromRawData(topic, 'topic')) )} title={topicsListTitle} level={2} |
