Code Monkey home page Code Monkey logo

Comments (16)

provok-me avatar provok-me commented on July 30, 2024 2

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.

msfm360 avatar msfm360 commented on July 30, 2024 2

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

thanks a lot i was using npm run build :|

now its just works fine

from sitemap.

harlan-zw avatar harlan-zw commented on July 30, 2024 1

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.

harlan-zw avatar harlan-zw commented on July 30, 2024 1

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.

msfm360 avatar msfm360 commented on July 30, 2024

@provok-it can you help me i saw your website have multilingual

from sitemap.

msfm360 avatar msfm360 commented on July 30, 2024

image

from sitemap.

memic84 avatar memic84 commented on July 30, 2024

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.

provok-me avatar provok-me commented on July 30, 2024

@memic84
Read the doc and look at: https://github.com/harlan-zw/nuxt-simple-sitemap#multiple-sitemap-support

from sitemap.

memic84 avatar memic84 commented on July 30, 2024

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.

harlan-zw avatar harlan-zw commented on July 30, 2024

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.

harlan-zw avatar harlan-zw commented on July 30, 2024

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?

image

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.

msfm360 avatar msfm360 commented on July 30, 2024

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?
image

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.

image

image
image

from sitemap.

lisaschumann avatar lisaschumann commented on July 30, 2024

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.

provok-me avatar provok-me commented on July 30, 2024

@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.

lisaschumann avatar lisaschumann commented on July 30, 2024

@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.

lisaschumann avatar lisaschumann commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.