Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/hooks/useBlog.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ const useBlog = () => {
blog_category {
name
}
seo {
pageTitle
pageKeywords
pageDescription
}
}
}
allStrapiBlogPage: allStrapiEnglishBlogPage {
Expand Down
2 changes: 1 addition & 1 deletion src/templates/BlogItemDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const BlogDetail = ({ data }) => {
return (
<Layout>
<Seo
title={title}
title={seo?.pageTitle}
description={seo?.pageDescription}
keywords={seo?.pageKeywords}
/>
Expand Down
5 changes: 3 additions & 2 deletions src/templates/LandingPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ const LandingPage = ({ data, location }) => {
ref: wrapperRef,
}

const { pageKeywords, pageDescription } = seo || {}
const {pageTitle, pageKeywords, pageDescription } = seo || {}

return (
<Layout location={location} options={{ hasHeader: true }}>
<Seo title={name} description={pageDescription} keywords={pageKeywords} />
<Seo title={pageTitle} description={pageDescription} keywords={pageKeywords} />
{body?.length > 0 && navigation ? (
<>
<CustomSection sections={body.slice(0, 1)} />
Expand Down Expand Up @@ -72,6 +72,7 @@ export const query = graphql`
slug
}
seo {
pageTitle
pageKeywords
pageDescription
}
Expand Down