kodyl / react-document-meta

HTML meta tags for React-based apps. Works for both client- and server-side rendering, and has a strict but flexible API.
MIT License
321 stars 23 forks source link

the meta has already added. But the SNS website don't use the new meta #46

Open windinging opened 5 years ago

windinging commented 5 years ago

client-side rendering, the head html is:

<meta property="og:image" content="/favicon.png">
<meta name="description" content="Spiral, a professional grade crypto currencies exchange for quantitative trading, makes you a smarter trader.The most favored referral program, high performance, high liquidity, high security standard, support for sub-account management.">
<meta name="twitter:title" content="Spiral Cryptocurrency Exchange">
<meta name="twitter:description" content="Spiral, a professional grade crypto currencies exchange for quantitative trading, makes you a smarter trader.The most favored referral program, high performance, high liquidity, high security standard, support for sub-account management.">
<meta name="twitter:image" content="/favicon.png">
<meta property="twitter:title" content="穩定幣調研報告:USDT將何去何從?" data-rdm="">
<meta property="twitter:image" content="/research.jpg" data-rdm="">
<meta property="og:image" content="/research.jpg" data-rdm="">

But the SNS website don not use the new meta tags,it seems that it do not work. Did i do something wrong? How dose it work

danieljuhl commented 5 years ago

@windinging Is the tags added server-side or client-side? It has to be server-side for crawlers to fetch it. Please make sure you follow the SSR example.