Skip to content

Commit

Permalink
Merge pull request #12 from Maxhodges/patch-1
Browse files Browse the repository at this point in the history
fixed type added (??)
  • Loading branch information
LiamMartens authored May 25, 2021
2 parents c51123c + 7220a91 commit c622ed7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ When proposing backend solutions for a client website many will request somethin

## How to use
1. Install the plugin using the Sanity CLI `sanity install seo-tools`
2. Configure your document with the SEO tools
*The result of the `content(doc)` function should represent the final result of but does not have to be 100% accurate. It should act as a real-time representation of the resulting content*
2. Configure your document with the SEO tools.
*The result of the `content(doc)` function should represent the final result of (??) but does not have to be 100% accurate. It should act as a real-time representation of the resulting content*
```
export default {
type: 'document',
Expand All @@ -21,7 +21,7 @@ export default {
baseUrl(doc) {
return 'https://.../'; // for dynamic baseUrls
},
slug(doc) { // (REQUIRED) a function to return the sug of the current page, which will be appended to the baseUrl
slug(doc) { // (REQUIRED) a function to return the slug of the current page, which will be appended to the baseUrl
return doc.slug.current;
},
fetchRemote: true, // Can be set to false to disable fetching the remote source (you will need to pass the content helpers for analysis)
Expand Down

0 comments on commit c622ed7

Please sign in to comment.