Comments (5)
Hey, this is now available in 2.4.0, you can use the alternatives
key.
I've also added automatic @nuxtjs/i18n support as well which may be useful.
Let me know if you have any issues :)
from sitemap.
Thanks for the issue @nico0756 and thanks for the detailed answer @tmlmt!
I intentionally didn't implement the xhtml
namespace for the v2 release for two reasons:
- Wasn't sure if anyone would actually need it, using the meta tags / HTTP headers is generally easier
- I based the sitemap on the logic of Yoast SEO, which doesn't support this natively afaik
It seems like a valid feature so I'll look into supporting this soon.
from sitemap.
Thanks for the answers!
For now I'll stick to using the meta tags, but if in the future the xhtml namespace will be supported I'll try it for sure.
Thank you!
from sitemap.
Just bumped into this as I tried to implement it on my project and am discovering the details of sitemaps & localised versions.
You're not doing anything wrong, it's just that Harlan's simple sitemap generator is only handling urls of type SitemapFullEntry and doesn't handle the xhtml
namespace
But if your goal is to indicate to search crawlers that there are localised versions of your pages, you can also do that by using HTML tags, as indicated in 1. And nuxt/i18n (if you're using it), handles it for you. It's my understanding, when reading in 1 where there is mention of three methods for doing so (HTML tags, HTTP headers and sitemap), that ...:
you can use all three methods at the same time
... that this should be sufficient to cover both the generation of a proper sitemap and indicating localised versions.
@harlan-zw could you confirm and give your thoughts on this issue?
Footnotes
from sitemap.
Thank you for putting this on the agenda. I would also like to see the xhtml namespace to be supported. It would be very useful to construct a sitemap with localized versions.
from sitemap.
Related Issues (20)
- This XML Sitemap contains 0 URLs HOT 6
- Sitemap Caching – sitemap.xml doesn’t update on Netlify host unless cacheMaxAgeSeconds is set to 0 HOT 4
- Image discovery can pull valid src values but invalid image:loc values such as data:, blob:, or file:
- Feature Request: Video Discovery HOT 2
- Various warning when running with Nuxt3
- "postinstall": "pnpm dev:prepare" issue HOT 5
- Cloudflare Pages fails because of dependency Node compatibility HOT 2
- 如何添加额外的协议 HOT 4
- When only linking to an external site map is configured, the multiple-sitemaps warning should be canceled
- i18n: How to generate dynamic urls per language? HOT 7
- i18n: How to disable indexing of custom route paths (translated route paths) HOT 7
- [Bug] 5xx if too many pages & languages HOT 2
- Conditionally allow runtime logic to prevent dynamic sitemap creation from defineSitemapEventHandler
- Homepage down HOT 1
- Dynamic URLs with i18n will not automatically add a language prefix HOT 3
- False multi-sitemap warning HOT 1
- Sitemap URL returns 500 error when accessed directly HOT 1
- docs: subdomain routing + sitemap HOT 1
- fix: [xsl] project/website name (inside h2 tag) exposing project name from package.json without any ability to hide/change it HOT 1
- help: sitemap-lastmod feature is forced to transfer iso type HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sitemap.