SEO - Palmabit-IT/Sacajawea GitHub Wiki
Sacajawea, from version 2, implements an helper able to automatically generate:
description
canonical
og:title
og:description
og:locale
og:url
twitter:title
twitter:description
- hreflang links for the same route
To implement this wrap your component into HOC component
import { WithSeo } from '@palmabit/sacajawea'
export default WithSeo(YourComponentPage)
after this into props you can found a SeoComponent
If you want to override some tag generated, we suggest to use a single Head only for Seo component
render() {
const { SeoComponent } = this.props
return (
<Head>
<title>foo</title>
<SeoComponent title=“foo” description=“bar” canonical="https://www.example.com/your-url"/>
</Head>
)
}