Skip to content

Commit

Permalink
v1.6.0 (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
garmeeh authored Dec 24, 2018
1 parent 6475a95 commit c1d7dd7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file.

## v1.6.0 - 24-12-2018

### Added

- Support for Local Business JSON-LD [PR #26](https://github.com/garmeeh/next-seo/pull/26)

## v1.5.0 - 23-12-2018

### Added
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,10 @@ Local business is supported with a sub-set of properties.
| `telephone` | A business phone number meant to be the primary contact method for customers. |
| `url` | The fully-qualified URL of the specific business location. |

**NOTE:**

Images are required for most of the types that you can use for `LocalBusiness`, if in doubt you should add an image. You can check your generated JSON over at Google's [Structured Data Testing Tool](https://search.google.com/structured-data/testing-tool)

### Logo

```jsx
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next-seo",
"version": "1.5.0",
"version": "1.6.0",
"description": "SEO plugin for Next.js projects",
"main": "dist/index.js",
"files": [
Expand Down
4 changes: 1 addition & 3 deletions src/jsonld/localBusiness.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ const LocalBusinessJsonLd = ({
geo,
images,
}) => {
// NOTE: Images has no trailing , as it would make the content invalid
// If you add more properties update buildImages
const jslonld = `{
"@context": "http://schema.org",
"@type": "${type}",
Expand All @@ -52,7 +50,7 @@ const LocalBusinessJsonLd = ({
${telephone ? `"telephone": "${telephone}",` : ''}
${buildAddress(address)}
${geo ? `${buildGeo(geo)}` : ''}
${buildImages(images)}
${buildImages(images)}
"name": "${name}"
}`;

Expand Down

0 comments on commit c1d7dd7

Please sign in to comment.