如何更改搜索结果中的"created using create-react-app"?



我正试图将我的投资组合链接发布到linkedin上,它总是显示为"使用react应用程序创建的网站";正如描述的那样,这绝对不会让它看起来很专业。它部署在我的域上,但有什么方法可以摆脱我的域链接上所有创建反应应用程序默认内容吗?

更改公用文件夹中index.html文件的描述和标题,然后重建应用程序

<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link href="https://fonts.googleapis.com/css?family=Muli:300,400,600,700" rel="stylesheet">
<title>React App</title>

您需要更改公用文件夹中的index.htm文件,标题和元标记将包含此默认标题。

您需要将这些元标记添加到index.html的标题中此外,图像大小应至少为1200x627(根据linkedin文档(

<head>
<meta property="og:title" content="*TITLE*" />
<meta property="og:image" content="%PUBLIC_URL%/linkedin.png" />
<meta property="og:description" content="*DESCRIPTION*" />
</head>

如果你在LinkedIn识别新标题时仍然有问题,请再次插入url,但在url末尾添加一个随机参数。

因此,如果你的网站网址是:https://www.example.com

尝试使用空参数再次添加链接:https://www.example.com?1

这将迫使linkedin提取新的头数据。

最新更新