Skip to content

Commit

Permalink
Use consistent cases for siteUrl in themes (gatsbyjs#24056)
Browse files Browse the repository at this point in the history
* Use consistent cases for siteUrl

* update README

Co-authored-by: Laurie Barth <laurie@LauriesrkLaptop.fios-router.home>
  • Loading branch information
LB and Laurie Barth committed May 13, 2020
1 parent 969fd13 commit 99298c3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/gatsby-theme-blog-core/README.md
Expand Up @@ -94,7 +94,7 @@ module.exports = {
// Used for SEO
description: `My site description...`,
// Used for social links in the root footer
siteURL: `https://example.com`,
siteUrl: `https://example.com`,
// Used for resolving images in social cards
social: [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-theme-blog-core/gatsby-config.js
Expand Up @@ -9,7 +9,7 @@ module.exports = themeOptions => {
title: `Blog Title Placeholder`,
author: `Name Placeholder`,
description: `Description placeholder`,
siteURL: 'https://example.com',
siteUrl: 'https://example.com',
social: [
{
name: `Twitter`,
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-theme-blog/README.md
Expand Up @@ -102,7 +102,7 @@ module.exports = {
// Used for SEO
description: `My site description...`,
// Used for social links in the root footer
siteURL: `https://example.com`,
siteUrl: `https://example.com`,
// Used for resolving images in social cards
social: [
{
Expand Down
4 changes: 2 additions & 2 deletions packages/gatsby-theme-blog/src/components/seo.js
Expand Up @@ -27,7 +27,7 @@ function SEO({
title
description
author
siteURL
siteUrl
}
}
}
Expand All @@ -36,7 +36,7 @@ function SEO({

const metaDescription = description || site.siteMetadata.description
const image = imageSource
? `${site.siteMetadata.siteURL}${imageSource}`
? `${site.siteMetadata.siteUrl}${imageSource}`
: null
const imageAltText = imageAlt || metaDescription

Expand Down

0 comments on commit 99298c3

Please sign in to comment.