Closed jl917 closed 1 week ago
When overwriting the html template, rspress keeps both html.title
and <Helmet />
which is imported from react-helmet-async
// template.html
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<!--<?- GENERATOR ?>-->
<!--<?- HEAD ?>--> ==> be replaced with `helmet?.title?.toString()` ==> <title data-rh="true">Default Title - Index Suffix</title>
<title>Default Title</title>
</head>
It will only appear in ssg and will be fixed in the next version.
版本信息
问题详情
控制台 html > head 标签里有2个title 标签
一个 head 元素只能包含一个 title 元素 https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/title
复现链接
https://rspress.dev/guide/start/introduction
复现步骤
复现