Cache clear
:
const description = props.json.descriptions
.map((line) => line.replace(/\[.*?\]/g, ""))
.join(" ");
return (
<>
<Head>
<title>{title} - NISHIO Hirokazu</title>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="nishio" />
<meta name="twitter:title" content={title} />
<meta name="twitter:description" content={description} />
<meta name="twitter:image" content={props.json.image} />
</Head>
old title Twitter Cards Start using your card - Twitter Developers
- How to combine with Open Graph tags is written at the end. ts
-
Twitter Preview
-
Real
-
Facebook Preview
-
Real
There was a suggestion to use react-helmet, but we decided it was better to modify the head directly since it is a single file for a single page.
This page is auto-translated from [/nishio/Twitter Card](https://scrapbox.io/nishio/Twitter Card) using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I’m very happy to spread my thought to non-Japanese readers.