We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
例如: <?xml version="1.0"encoding="UTF-8" ?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:mobile="http://www.baidu.com/schemas/sitemap-mobile/1/"> <url> <loc>http://m.abc.com/index.html</loc> <mobile:mobiletype="mobile"/> <lastmod>2009-12-14</lastmod> <changefreq>daily</changefreq> <priority>0.8</priority> </url>
<?xml version="1.0"encoding="UTF-8" ?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:mobile="http://www.baidu.com/schemas/sitemap-mobile/1/"> <url> <loc>http://m.abc.com/index.html</loc> <mobile:mobiletype="mobile"/> <lastmod>2009-12-14</lastmod> <changefreq>daily</changefreq> <priority>0.8</priority> </url>
版本:"@nuxtjs/sitemap": "^2.4.0"
The text was updated successfully, but these errors were encountered:
Hi, your best bet, for now, is to use the sitemap:output Nitro hook.
I may consider adding a nicer way to handle this in the future but I'm not familiar with this directive.
Sorry, something went wrong.
文档找到配置方法了https://sitemap.nuxtjs.org/usage/sitemap-options/#xmlns-optional---string
如果要添加mobile:mobiletype="mobile"/ sitemap: { xmlNs: 'xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:mobile="http://www.baidu.com/schemas/sitemap-mobile/1/"', // 默认的配置 defaults: { mobile: 'mobile', } }
sitemap: { xmlNs: 'xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:mobile="http://www.baidu.com/schemas/sitemap-mobile/1/"', // 默认的配置 defaults: { mobile: 'mobile', } }
No branches or pull requests
例如:
我想添加 urlset 中添加xmlns:mobile="http://www.baidu.com/schemas/sitemap-mobile/1/ 在 标签中添加<?xml version="1.0"encoding="UTF-8" ?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:mobile="http://www.baidu.com/schemas/sitemap-mobile/1/"> <url> <loc>http://m.abc.com/index.html</loc> <mobile:mobiletype="mobile"/> <lastmod>2009-12-14</lastmod> <changefreq>daily</changefreq> <priority>0.8</priority> </url>
版本:"@nuxtjs/sitemap": "^2.4.0"
The text was updated successfully, but these errors were encountered: