diff options
Diffstat (limited to 'src/pages/blog')
| -rw-r--r-- | src/pages/blog/index.tsx | 11 | ||||
| -rw-r--r-- | src/pages/blog/page/[number].tsx | 11 |
2 files changed, 16 insertions, 6 deletions
diff --git a/src/pages/blog/index.tsx b/src/pages/blog/index.tsx index 56cbb02..12bc03e 100644 --- a/src/pages/blog/index.tsx +++ b/src/pages/blog/index.tsx @@ -20,7 +20,8 @@ import { PageSidebar, } from '../../components'; import { - convertTaxonomyToPageLink, + convertWPThematicPreviewToPageLink, + convertWPTopicPreviewToPageLink, fetchPostsCount, fetchPostsList, fetchThematicsCount, @@ -265,7 +266,9 @@ const BlogPage: NextPageWithLayout<BlogPageProps> = ({ {thematicsListTitle} </Heading> } - items={getLinksItemData(thematicsList.map(convertTaxonomyToPageLink))} + items={getLinksItemData( + thematicsList.map(convertWPThematicPreviewToPageLink) + )} /> <LinksWidget heading={ @@ -273,7 +276,9 @@ const BlogPage: NextPageWithLayout<BlogPageProps> = ({ {topicsListTitle} </Heading> } - items={getLinksItemData(topicsList.map(convertTaxonomyToPageLink))} + items={getLinksItemData( + topicsList.map(convertWPTopicPreviewToPageLink) + )} /> </PageSidebar> </Page> diff --git a/src/pages/blog/page/[number].tsx b/src/pages/blog/page/[number].tsx index d6071d1..35d4bad 100644 --- a/src/pages/blog/page/[number].tsx +++ b/src/pages/blog/page/[number].tsx @@ -20,7 +20,8 @@ import { PageSidebar, } from '../../../components'; import { - convertTaxonomyToPageLink, + convertWPThematicPreviewToPageLink, + convertWPTopicPreviewToPageLink, fetchLastPostCursor, fetchPostsCount, fetchPostsList, @@ -247,7 +248,9 @@ const BlogPage: NextPageWithLayout<BlogPageProps> = ({ {thematicsListTitle} </Heading> } - items={getLinksItemData(thematicsList.map(convertTaxonomyToPageLink))} + items={getLinksItemData( + thematicsList.map(convertWPThematicPreviewToPageLink) + )} /> <LinksWidget heading={ @@ -255,7 +258,9 @@ const BlogPage: NextPageWithLayout<BlogPageProps> = ({ {topicsListTitle} </Heading> } - items={getLinksItemData(topicsList.map(convertTaxonomyToPageLink))} + items={getLinksItemData( + topicsList.map(convertWPTopicPreviewToPageLink) + )} /> </PageSidebar> </Page> |
