Comments (16)
The package is not working for me anymore since 2.4.8.
We should wait for @harlan-zw to resolve the issue first, then we'll see if you're really having a problem with it.
See #33.
from sitemap.
Do you build your site using
nuxt build
ornuxt generate
? Also, it looks like you're modifying the sitemap output somehow with code you haven't shared.Ideally, you would provide a Stackblitz reproduction so I can see exactly what the setup/issue is. You can make one using the starter https://stackblitz.com/edit/nuxt-starter-dyraxc?file=package.json
thanks a lot i was using npm run build :|
now its just works fine
from sitemap.
Do you build your site using nuxt build
or nuxt generate
? Also, it looks like you're modifying the sitemap output somehow with code you haven't shared.
Ideally, you would provide a Stackblitz reproduction so I can see exactly what the setup/issue is. You can make one using the starter https://stackblitz.com/edit/nuxt-starter-dyraxc?file=package.json
from sitemap.
Hey @lisaschumann
Would you be able to create a new issue the reproduction you created and I'll look at it when I have a chance :)
from sitemap.
@provok-it can you help me i saw your website have multilingual
from sitemap.
from sitemap.
Any idea if it's possible to add a sitemapindex, we've used the Nuxt 2 module, see their docs: https://sitemap.nuxtjs.org/usage/sitemap-index
from sitemap.
@memic84
Read the doc and look at: https://github.com/harlan-zw/nuxt-simple-sitemap#multiple-sitemap-support
from sitemap.
Yes, I read it several times and tried it, but failed to get it working. I have two dynamic sources, multiple languages and dont use the pages, and got it actually working with https://roe.dev/blog/creating-your-own-sitemap-module#a-different-approach-for-a-dynamic-sitemap
from sitemap.
Any idea if it's possible to add a sitemapindex, we've used the Nuxt 2 module, see their docs: https://sitemap.nuxtjs.org/usage/sitemap-index
It should be straight forward, for example in the playground I have this config and it works without issue.
sitemaps: {
posts: {
include: ['/blog/**']
},
pages: {
exclude: ['/blog/**'],
}
}
If you still have issues and would like some help please create a seperate issue.
from sitemap.
Details
I am using nuxt-simple-sitemap for my website which has two languages, /en and /ar. However, the XML Sitemap generated by the tool only includes the default language URLs. Can someone please tell me how I can add the /en and /ar links to the XML Sitemap?
![]()
If you're using the latest nuxt-simple-sitemap with the latest @nuxt/i18n this should just work for you. You'll need to provide some reproduction details if you want some further help.
from sitemap.
Details
I am using nuxt-simple-sitemap for my website which has two languages, /en and /ar. However, the XML Sitemap generated by the tool only includes the default language URLs. Can someone please tell me how I can add the /en and /ar links to the XML Sitemap?
If you're using the latest nuxt-simple-sitemap with the latest @nuxt/i18n this should just work for you. You'll need to provide some reproduction details if you want some further help.
I’m using the latest version , but I’m not sure what you mean by reproduction details.
from sitemap.
I hope it is ok to post on this thread here. I am struggling to generate the dynamic routes for each page and blog post for "/en/page" and "/de/page" and would love to see how you set this up.
I made a simple reproduction here: https://stackblitz.com/edit/nuxt-starter-uhq2jp?file=app.vue
I set the blog posts to be fetched from contentful, but here just using an array to keep it simple. Appreciate any lead you might be able to provide. I saw @provok-it also had the i18n routes working, but not sure what I am missing.
from sitemap.
@lisaschumann the Nitro prerender will generate all the internal links found from the "/"
route.
In the sandbox env you made there is no <NuxtLink />
tag, thus no dynamic url in your sitemap.
from sitemap.
@provok-it sorry I think I am not quite understanding. I moved the nav to the index page, but that's probably not what you meant. In my build I set up the nav with to the different pages and then on the blog pages it is showing a grid of all the articles. I would like all pages as well as dynamically fetched articles to be pulled through not only as the original "/{{pagename}}" for the English version but also "/de/{{pagename}}" for the German version. I think I am missing something on the basic set-up understanding. Do you know of a viewable example of the i18n setup with the sitemap online?
from sitemap.
Hey @harlan-zw really appreciate it. A bit of a hectic week, so will put it together now and open a new issue!
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.