From 7220a910a4702a8bd392938ff084deb2d61d6f16 Mon Sep 17 00:00:00 2001 From: Max Hodges Date: Sat, 11 Jul 2020 01:03:24 +0900 Subject: [PATCH] fixed type added (??) --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cfa336b..7cb8c80 100644 --- a/README.md +++ b/README.md @@ -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', @@ -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)