-
I want to set preview image for a static page which is different from the generic preview image set in docusaurus-config.js - Is there a way to do this? The static page is not a .md page but js page. - so can't use #5375 i guess if I can set page specifc Current the specific page takes site wide preview image. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
You can use the E.g.: import React from 'react';
import Head from '@docusaurus/Head';
export default function page() {
return (
<main>
<Head>
<meta property="og:image" content="image.png" />
</Head>
{/* ... */}
</main>
);
} |
Beta Was this translation helpful? Give feedback.
-
how can this be done on a markdown page? with |
Beta Was this translation helpful? Give feedback.
You can use the
<Head>
component: https://docusaurus.io/docs/next/docusaurus-core#headE.g.: