File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed
packages/gatsby-theme-iterative Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,7 @@ module.exports = ({
159159 author : 'Iterative' ,
160160 titleTemplate : '' ,
161161 twitterUsername : '' ,
162+ imageAlt : '' ,
162163 plausibleSrc,
163164 plausibleAPI,
164165 plausibleDomain
Original file line number Diff line number Diff line change 11{
22 "name" : " @dvcorg/gatsby-theme-iterative" ,
3- "version" : " 0.2.5 " ,
3+ "version" : " 0.2.6 " ,
44 "description" : " " ,
55 "main" : " index.js" ,
66 "types" : " src/typings.d.ts" ,
Original file line number Diff line number Diff line change @@ -57,12 +57,12 @@ const SEO: React.FC<ISEOProps> = ({
5757 return buildMetadata ( {
5858 siteUrl : siteMeta . siteUrl ,
5959 siteName : siteMeta . title ,
60- title : pageTitle ,
60+ title : pageTitle || siteMeta . title ,
6161 defaultMetaTitle,
62- description,
63- keywords,
62+ description : description || siteMeta . description ,
63+ keywords : keywords || siteMeta . keywords ,
6464 image,
65- imageAlt,
65+ imageAlt : imageAlt || siteMeta . imageAlt ,
6666 imageHeight,
6767 imageWidth,
6868 pathname,
@@ -93,7 +93,6 @@ const SEO: React.FC<ISEOProps> = ({
9393 ? ''
9494 : siteMeta . titleTemplate || `%s | ${ siteMeta . title } `
9595 }
96- { ...( skipTitleTemplate && { titleTemplate : '' } ) }
9796 meta = { [ ...prebuildMeta , ...meta ] }
9897 link = { [
9998 ...( canonicalUrl
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ interface ISiteMeta {
66 keywords : string
77 siteUrl : string
88 titleTemplate : string
9+ imageAlt ?: string
910 plausibleDomain : string | null
1011 plausibleSrc : string | null
1112 plausibleAPI : string | null
@@ -25,6 +26,7 @@ export default function siteMeta(): ISiteMeta {
2526 keywords
2627 siteUrl
2728 titleTemplate
29+ imageAlt
2830 plausibleDomain
2931 plausibleSrc
3032 plausibleAPI
You can’t perform that action at this time.
0 commit comments