mirror of
https://github.com/LaconicNetwork/laconic.com.git
synced 2026-10-16 14:04:09 +00:00
Signed-off-by: Traxus <shyidx@gmail.com>
This commit is contained in:
@@ -130,7 +130,8 @@ export const getStaticProps: GetStaticProps = async (
|
||||
relatedBlogPostsFromSource = allBlogPosts.data.filter((p) =>
|
||||
p.category.some((c) =>
|
||||
post?.category.some(
|
||||
(postCategory: any) => c.slug === postCategory.slug)
|
||||
(postCategory: any) => c.slug === postCategory.slug
|
||||
)
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -121,7 +121,10 @@ const BlogIndexPage = ({
|
||||
|
||||
let queriedPostsHasResults = false
|
||||
|
||||
if (typeof queriedPosts !== 'undefined' && 'pages' in queriedPosts === true) {
|
||||
if (
|
||||
typeof queriedPosts !== 'undefined' &&
|
||||
'pages' in queriedPosts === true)
|
||||
{
|
||||
if (0 in queriedPosts.pages === true) {
|
||||
if ('pagination' in queriedPosts.pages[0]) {
|
||||
if ('total' in queriedPosts.pages[0].pagination) {
|
||||
|
||||
Reference in New Issue
Block a user