我已经使用以下代码在 React Helmet 中为我的根路由设置了社交共享图像:
<meta property="og:url" content="https://foo.com" />
<meta property="og:image" content="https://myhostedimg.png" />
Run Code Online (Sandbox Code Playgroud)
我有一个单独的路由,或 Gatsby 中的“页面”,我想为其设置另一个og:image值。由于没有任何链接og:image到og:url,我如何在我的页面上指定自定义og:url和og:image链接?