mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-01 16:00:29 +02:00
docs(website): fix SEO docs headTags example (#10014)
This commit is contained in:
parent
a9cdb3fda6
commit
73e78d2868
4 changed files with 96 additions and 96 deletions
|
@ -24,31 +24,31 @@ export default {
|
|||
{name: 'keywords', content: 'cooking, blog'},
|
||||
{name: 'twitter:card', content: 'summary_large_image'},
|
||||
],
|
||||
headTags: [
|
||||
// Declare a <link> preconnect tag
|
||||
{
|
||||
tagName: 'link',
|
||||
attributes: {
|
||||
rel: 'preconnect',
|
||||
href: 'https://example.com',
|
||||
},
|
||||
},
|
||||
// Declare some json-ld structured data
|
||||
{
|
||||
tagName: 'script',
|
||||
attributes: {
|
||||
type: 'application/ld+json',
|
||||
},
|
||||
innerHTML: JSON.stringify({
|
||||
'@context': 'https://schema.org/',
|
||||
'@type': 'Organization',
|
||||
name: 'Meta Open Source',
|
||||
url: 'https://opensource.fb.com/',
|
||||
logo: 'https://opensource.fb.com/img/logos/Meta-Open-Source.svg',
|
||||
}),
|
||||
},
|
||||
],
|
||||
},
|
||||
headTags: [
|
||||
// Declare a <link> preconnect tag
|
||||
{
|
||||
tagName: 'link',
|
||||
attributes: {
|
||||
rel: 'preconnect',
|
||||
href: 'https://example.com',
|
||||
},
|
||||
},
|
||||
// Declare some json-ld structured data
|
||||
{
|
||||
tagName: 'script',
|
||||
attributes: {
|
||||
type: 'application/ld+json',
|
||||
},
|
||||
innerHTML: JSON.stringify({
|
||||
'@context': 'https://schema.org/',
|
||||
'@type': 'Organization',
|
||||
name: 'Meta Open Source',
|
||||
url: 'https://opensource.fb.com/',
|
||||
logo: 'https://opensource.fb.com/img/logos/Meta-Open-Source.svg',
|
||||
}),
|
||||
},
|
||||
],
|
||||
};
|
||||
```
|
||||
|
||||
|
|
|
@ -24,31 +24,31 @@ export default {
|
|||
{name: 'keywords', content: 'cooking, blog'},
|
||||
{name: 'twitter:card', content: 'summary_large_image'},
|
||||
],
|
||||
headTags: [
|
||||
// Declare a <link> preconnect tag
|
||||
{
|
||||
tagName: 'link',
|
||||
attributes: {
|
||||
rel: 'preconnect',
|
||||
href: 'https://example.com',
|
||||
},
|
||||
},
|
||||
// Declare some json-ld structured data
|
||||
{
|
||||
tagName: 'script',
|
||||
attributes: {
|
||||
type: 'application/ld+json',
|
||||
},
|
||||
innerHTML: JSON.stringify({
|
||||
'@context': 'https://schema.org/',
|
||||
'@type': 'Organization',
|
||||
name: 'Meta Open Source',
|
||||
url: 'https://opensource.fb.com/',
|
||||
logo: 'https://opensource.fb.com/img/logos/Meta-Open-Source.svg',
|
||||
}),
|
||||
},
|
||||
],
|
||||
},
|
||||
headTags: [
|
||||
// Declare a <link> preconnect tag
|
||||
{
|
||||
tagName: 'link',
|
||||
attributes: {
|
||||
rel: 'preconnect',
|
||||
href: 'https://example.com',
|
||||
},
|
||||
},
|
||||
// Declare some json-ld structured data
|
||||
{
|
||||
tagName: 'script',
|
||||
attributes: {
|
||||
type: 'application/ld+json',
|
||||
},
|
||||
innerHTML: JSON.stringify({
|
||||
'@context': 'https://schema.org/',
|
||||
'@type': 'Organization',
|
||||
name: 'Meta Open Source',
|
||||
url: 'https://opensource.fb.com/',
|
||||
logo: 'https://opensource.fb.com/img/logos/Meta-Open-Source.svg',
|
||||
}),
|
||||
},
|
||||
],
|
||||
};
|
||||
```
|
||||
|
||||
|
|
|
@ -24,31 +24,31 @@ export default {
|
|||
{name: 'keywords', content: 'cooking, blog'},
|
||||
{name: 'twitter:card', content: 'summary_large_image'},
|
||||
],
|
||||
headTags: [
|
||||
// Declare a <link> preconnect tag
|
||||
{
|
||||
tagName: 'link',
|
||||
attributes: {
|
||||
rel: 'preconnect',
|
||||
href: 'https://example.com',
|
||||
},
|
||||
},
|
||||
// Declare some json-ld structured data
|
||||
{
|
||||
tagName: 'script',
|
||||
attributes: {
|
||||
type: 'application/ld+json',
|
||||
},
|
||||
innerHTML: JSON.stringify({
|
||||
'@context': 'https://schema.org/',
|
||||
'@type': 'Organization',
|
||||
name: 'Meta Open Source',
|
||||
url: 'https://opensource.fb.com/',
|
||||
logo: 'https://opensource.fb.com/img/logos/Meta-Open-Source.svg',
|
||||
}),
|
||||
},
|
||||
],
|
||||
},
|
||||
headTags: [
|
||||
// Declare a <link> preconnect tag
|
||||
{
|
||||
tagName: 'link',
|
||||
attributes: {
|
||||
rel: 'preconnect',
|
||||
href: 'https://example.com',
|
||||
},
|
||||
},
|
||||
// Declare some json-ld structured data
|
||||
{
|
||||
tagName: 'script',
|
||||
attributes: {
|
||||
type: 'application/ld+json',
|
||||
},
|
||||
innerHTML: JSON.stringify({
|
||||
'@context': 'https://schema.org/',
|
||||
'@type': 'Organization',
|
||||
name: 'Meta Open Source',
|
||||
url: 'https://opensource.fb.com/',
|
||||
logo: 'https://opensource.fb.com/img/logos/Meta-Open-Source.svg',
|
||||
}),
|
||||
},
|
||||
],
|
||||
};
|
||||
```
|
||||
|
||||
|
|
|
@ -24,31 +24,31 @@ export default {
|
|||
{name: 'keywords', content: 'cooking, blog'},
|
||||
{name: 'twitter:card', content: 'summary_large_image'},
|
||||
],
|
||||
headTags: [
|
||||
// Declare a <link> preconnect tag
|
||||
{
|
||||
tagName: 'link',
|
||||
attributes: {
|
||||
rel: 'preconnect',
|
||||
href: 'https://example.com',
|
||||
},
|
||||
},
|
||||
// Declare some json-ld structured data
|
||||
{
|
||||
tagName: 'script',
|
||||
attributes: {
|
||||
type: 'application/ld+json',
|
||||
},
|
||||
innerHTML: JSON.stringify({
|
||||
'@context': 'https://schema.org/',
|
||||
'@type': 'Organization',
|
||||
name: 'Meta Open Source',
|
||||
url: 'https://opensource.fb.com/',
|
||||
logo: 'https://opensource.fb.com/img/logos/Meta-Open-Source.svg',
|
||||
}),
|
||||
},
|
||||
],
|
||||
},
|
||||
headTags: [
|
||||
// Declare a <link> preconnect tag
|
||||
{
|
||||
tagName: 'link',
|
||||
attributes: {
|
||||
rel: 'preconnect',
|
||||
href: 'https://example.com',
|
||||
},
|
||||
},
|
||||
// Declare some json-ld structured data
|
||||
{
|
||||
tagName: 'script',
|
||||
attributes: {
|
||||
type: 'application/ld+json',
|
||||
},
|
||||
innerHTML: JSON.stringify({
|
||||
'@context': 'https://schema.org/',
|
||||
'@type': 'Organization',
|
||||
name: 'Meta Open Source',
|
||||
url: 'https://opensource.fb.com/',
|
||||
logo: 'https://opensource.fb.com/img/logos/Meta-Open-Source.svg',
|
||||
}),
|
||||
},
|
||||
],
|
||||
};
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue