nuxt-modules / sitemap

Powerfully flexible XML Sitemaps that integrate seamlessly, for Nuxt.
https://nuxtseo.com/sitemap
331 stars 29 forks source link

Add hreflang hints to xml stylesheet #41

Closed botmaster closed 1 year ago

botmaster commented 1 year ago

Clear and concise description of the problem

Hello.

No hreflang alternatives displayed in the rendered sitemap.xml.

CleanShot 2023-05-03 at 16 21 01

Suggested solution

Maybe we should add a table that would contain the "hreflang" list?

Alternative

No response

Additional context

No response

harlan-zw commented 1 year ago

Hi @botmaster, thanks for the issue.

Just to confirm, the alternatives are working for you correctly (view source of the sitemap), you would just like to see them within the sitemap stylesheet?

botmaster commented 1 year ago

Yes, everything works fine 👏 I would just like to see them within the sitemap stylesheet 🙏.

Sorry, I don't speak English very well

harlan-zw commented 1 year ago

All good :) Just wanted to make sure there wasn't a bug.

It's a good idea to give some feedback around the alternatives, even if it's just a count to start with

mradenkovic commented 1 year ago

Hi @harlan-zw have the same issue with nuxt 3.5 and i18n not working!! I already disabled the style and in the source as well not shown. Really important.

my source:

   ['nuxt-simple-sitemap', {
           xsl: false,
           siteUrl: 'https://hidden',
           sitemaps: false,
           trailingSlash: true,
           autoLastmod: true,
           alternatives: true,
           pages: {
                exclude: [
                    '/store/bag',
                ],
            },
           index: [
               { sitemap: 'https://hidden/sitemap-products.xml' }
           ]
       }]
harlan-zw commented 1 year ago

Hi @harlan-zw have the same issue with nuxt 3.5 and i18n not working!! I already disabled the style and in the source as well not shown. Really important.

my source: ``` ['nuxt-simple-sitemap', { xsl: false, siteUrl: 'https://hidden', sitemaps: false, trailingSlash: true, autoLastmod: true, alternatives: true, pages: { exclude: [ '/store/bag', ], }, index: [ { sitemap: 'https://hidden/sitemap-products.xml' } ] }]

Hi @mradenkovic, you're posting on an unrelated issue. Can you please make a new issue with more details? Ideally a StackBlitz of the problem.

One quick thing I'll say is that your config does not seem to be correct. pages and alternatives are not valid root keys.

mradenkovic commented 1 year ago

@harlan-zw yes i know, i just tried it out if it works before i open a issue

harlan-zw commented 1 year ago

Will track here: https://github.com/harlan-zw/nuxt-simple-sitemap/issues/81