File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed
packages/gatsby-theme-iterative
components/Page/DefaultSEO Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ module.exports = ({
172172 ] ,
173173 siteMetadata : {
174174 author : 'Iterative' ,
175- siteUrl : 'https://cml.dev'
175+ siteUrl : 'https://cml.dev' ,
176+ titleTemplate : ''
176177 }
177178} )
Original file line number Diff line number Diff line change 11{
22 "name" : " @dvcorg/gatsby-theme-iterative" ,
3- "version" : " 0.1.17 " ,
3+ "version" : " 0.1.18 " ,
44 "description" : " " ,
55 "main" : " index.js" ,
66 "types" : " src/typings.d.ts" ,
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ const DefaultSEO: React.FC<IDefaultSEOProps> = ({ pathname }) => {
1919 const siteMeta = getSiteMeta ( )
2020 const siteUrl = siteMeta . siteUrl
2121 const metaTitle = siteMeta . title
22+ const metaTitleTemplate = siteMeta . titleTemplate
2223 const metaDescription = siteMeta . description
2324 const metaKeywords = siteMeta . keywords
2425 const fullUrl = siteUrl + pathname
@@ -109,7 +110,7 @@ const DefaultSEO: React.FC<IDefaultSEOProps> = ({ pathname }) => {
109110 lang : 'en'
110111 } }
111112 defaultTitle = { metaTitle }
112- titleTemplate = { `%s | ${ metaTitle } ` }
113+ titleTemplate = { metaTitleTemplate || `%s | ${ metaTitle } ` }
113114 meta = { meta }
114115 link = { [
115116 {
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ interface ISiteMeta {
55 description : string
66 keywords : string
77 siteUrl : string
8+ titleTemplate : string
89}
910
1011export default function siteMeta ( ) : ISiteMeta {
@@ -19,6 +20,7 @@ export default function siteMeta(): ISiteMeta {
1920 description
2021 keywords
2122 siteUrl
23+ titleTemplate
2224 }
2325 }
2426 }
You can’t perform that action at this time.
0 commit comments