Skip to content

Commit 25891cc

Browse files
authored
fix(gatsby-starter-wordpress-blog): Fix altText (#30832)
I was wondering why i hadn't alt... ;) Thanks for this marvellous starter! Hubert
1 parent 62a4121 commit 25891cc

File tree

1 file changed

+1
-1
lines changed
  • starters/gatsby-starter-wordpress-blog/src/templates

1 file changed

+1
-1
lines changed

starters/gatsby-starter-wordpress-blog/src/templates/Post.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import SEO from "../components/seo"
1414
const BlogPostTemplate = ({ data: { previous, next, post } }) => {
1515
const featuredImage = {
1616
fluid: post.featuredImage?.node?.localFile?.childImageSharp?.fluid,
17-
alt: post.featuredImage?.node?.alt || ``,
17+
alt: post.featuredImage?.node?.altText || ``,
1818
}
1919

2020
return (

0 commit comments

Comments
 (0)