diff --git a/lib/api.ts b/lib/api.ts index 95866e5..c54fec2 100644 --- a/lib/api.ts +++ b/lib/api.ts @@ -300,6 +300,10 @@ export async function getAllPostsForTechnology(preview) { } } } + seo { + metaDesc + title + } } } } @@ -355,6 +359,10 @@ export async function getAllPostsForCommunity(preview) { } } } + seo { + metaDesc + title + } } } pageInfo { @@ -560,6 +568,10 @@ export async function getPostAndMorePosts(slug, preview, previewData) { } } } + seo{ + metaDesc + title + } } query PostBySlug($id: ID!, $idType: PostIdType!) { diff --git a/pages/community/[slug].tsx b/pages/community/[slug].tsx index aeebe93..bc7ba53 100644 --- a/pages/community/[slug].tsx +++ b/pages/community/[slug].tsx @@ -104,7 +104,6 @@ export default function Post({ post, posts, reviewAuthorDetails, preview }) { if (post && post.content) { const content = post.content; - const avatarDivMatch = content.match( /]*class="pp-author-boxes-avatar"[^>]*>\s*]*src='([^']*)'[^>]*\/?>/ ); @@ -117,7 +116,7 @@ export default function Post({ post, posts, reviewAuthorDetails, preview }) { // Match the

with class pp-author-boxes-description and extract its content const authorDescriptionMatch = content.match( - /]*class="pp-author-boxes-description multiple-authors-description"[^>]*>(.*?)<\/p>/s + /]*class="pp-author-boxes-description multiple-authors-description"[^>]*>(.*?)<\/p>/ ); // Apply table responsive wrapper @@ -146,8 +145,8 @@ export default function Post({ post, posts, reviewAuthorDetails, preview }) {

diff --git a/pages/technology/[slug].tsx b/pages/technology/[slug].tsx index 5671ea4..f449663 100644 --- a/pages/technology/[slug].tsx +++ b/pages/technology/[slug].tsx @@ -111,7 +111,7 @@ export default function Post({ post, posts, reviewAuthorDetails, preview }) { // Match the

with class pp-author-boxes-description and extract its content const authorDescriptionMatch = content.match( - /]*class="pp-author-boxes-description multiple-authors-description"[^>]*>(.*?)<\/p>/s + /]*class="pp-author-boxes-description multiple-authors-description"[^>]*>(.*?)<\/p>/ ); if ( @@ -135,8 +135,8 @@ export default function Post({ post, posts, reviewAuthorDetails, preview }) {