Skip to content

Commit 9d295ed

Browse files
Merge pull request #93 from bitlogic/SBIT-492
SBIT-492 title tag ahora con pageTitle
2 parents 063d28a + d99f0db commit 9d295ed

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

src/hooks/useBlog.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ const useBlog = () => {
3838
blog_category {
3939
name
4040
}
41+
seo {
42+
pageTitle
43+
pageKeywords
44+
pageDescription
45+
}
4146
}
4247
}
4348
allStrapiBlogPage: allStrapiEnglishBlogPage {

src/templates/BlogItemDetail.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const BlogDetail = ({ data }) => {
1616
return (
1717
<Layout>
1818
<Seo
19-
title={title}
19+
title={seo?.pageTitle}
2020
description={seo?.pageDescription}
2121
keywords={seo?.pageKeywords}
2222
/>

src/templates/LandingPage.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ const LandingPage = ({ data, location }) => {
1616
ref: wrapperRef,
1717
}
1818

19-
const { pageKeywords, pageDescription } = seo || {}
19+
const {pageTitle, pageKeywords, pageDescription } = seo || {}
2020

2121
return (
2222
<Layout location={location} options={{ hasHeader: true }}>
23-
<Seo title={name} description={pageDescription} keywords={pageKeywords} />
23+
<Seo title={pageTitle} description={pageDescription} keywords={pageKeywords} />
2424
{body?.length > 0 && navigation ? (
2525
<>
2626
<CustomSection sections={body.slice(0, 1)} />
@@ -72,6 +72,7 @@ export const query = graphql`
7272
slug
7373
}
7474
seo {
75+
pageTitle
7576
pageKeywords
7677
pageDescription
7778
}

0 commit comments

Comments
 (0)