nextjs-headless-wordpress icon indicating copy to clipboard operation
nextjs-headless-wordpress copied to clipboard

Minor Seo Bug

Open Bowriverstudio opened this issue 4 years ago • 0 comments
trafficstars

Hello Imranhsayed, thank you for the repo and lessons.

https://github.com/imranhsayed/nextjs-headless-wordpress/blob/main/frontend/src/components/seo/index.js

The fields have the following values:

metaRobotsNoindex, // index | noindex metaRobotsNofollow, // follow | nofollow

So in the component, it should be

    noindex={metaRobotsNoindex === "noindex"}
    nofollow={metaRobotsNofollow === "nofollow"}

Bowriverstudio avatar Sep 10 '21 23:09 Bowriverstudio