vite-react-ssg 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node.cjs +5 -1
- package/dist/node.mjs +5 -1
- package/package.json +1 -1
package/dist/node.cjs
CHANGED
|
@@ -1010,8 +1010,12 @@ function extractHelmet(context, styleCollector) {
|
|
|
1010
1010
|
const { helmet } = context;
|
|
1011
1011
|
const htmlAttributes = helmet.htmlAttributes.toString();
|
|
1012
1012
|
const bodyAttributes = helmet.bodyAttributes.toString();
|
|
1013
|
+
let titleString = helmet.title.toString();
|
|
1014
|
+
if (titleString.split(">")[1] === "</title") {
|
|
1015
|
+
titleString = "";
|
|
1016
|
+
}
|
|
1013
1017
|
const metaStrings = [
|
|
1014
|
-
|
|
1018
|
+
titleString,
|
|
1015
1019
|
helmet.meta.toString(),
|
|
1016
1020
|
helmet.link.toString(),
|
|
1017
1021
|
helmet.script.toString()
|
package/dist/node.mjs
CHANGED
|
@@ -1003,8 +1003,12 @@ function extractHelmet(context, styleCollector) {
|
|
|
1003
1003
|
const { helmet } = context;
|
|
1004
1004
|
const htmlAttributes = helmet.htmlAttributes.toString();
|
|
1005
1005
|
const bodyAttributes = helmet.bodyAttributes.toString();
|
|
1006
|
+
let titleString = helmet.title.toString();
|
|
1007
|
+
if (titleString.split(">")[1] === "</title") {
|
|
1008
|
+
titleString = "";
|
|
1009
|
+
}
|
|
1006
1010
|
const metaStrings = [
|
|
1007
|
-
|
|
1011
|
+
titleString,
|
|
1008
1012
|
helmet.meta.toString(),
|
|
1009
1013
|
helmet.link.toString(),
|
|
1010
1014
|
helmet.script.toString()
|