Generates robots meta tags for the HTML head section.
Controls how search engines crawl and index your pages. Supports both traditional robots directives and modern Google-specific directives.
import { robots } from '@raven-js/beak/seo';// Basic robots tagconst tags = robots({ index: true, follow: true});// Output:// <meta name="robots" content="index, follow" />// Prevent indexingconst noIndexTags = robots({ index: false, follow: false});// Output:// <meta name="robots" content="noindex, nofollow" /> Copy
import { robots } from '@raven-js/beak/seo';// Basic robots tagconst tags = robots({ index: true, follow: true});// Output:// <meta name="robots" content="index, follow" />// Prevent indexingconst noIndexTags = robots({ index: false, follow: false});// Output:// <meta name="robots" content="noindex, nofollow" />
Configuration object for robots tags
The generated robots meta tags as an HTML string
Generates robots meta tags for the HTML head section.
Controls how search engines crawl and index your pages. Supports both traditional robots directives and modern Google-specific directives.
Example