-
-
Notifications
You must be signed in to change notification settings - Fork 642
New issue
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
docs: added information on sitemap generation #1145
Conversation
β Deploy Preview for nuxt-content ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Just realised those using static sites won't be able to utilise this.. so solely only for those with SSR. Live Example: https://stackblitz.com/edit/github-d1ngrx-aydi6d?file=nuxt.config.ts |
Hello @heychazza :) That looks like a nice addition to the docs! Do you think it could be worth to implement this feature natively in @nuxt/content? We already have navigation generation, so I guess it would not be so hard to create a sitemap out of this. Maybe we could collaborate on this PR towards a native feature with its own documentation page? |
Hey buddy, I think this would be a superb addition to give people out-the-box sitemap generation for their blogs. I'd be happy to help! :) |
Generating sitemaps mostly is project specific thing and generalizing it in content module may create some edge case issues.
Having documentation about how to create sitemap seems good to me, but we should have some notes about the partials, non-markdown and content filtering. |
I don't think adding it into Content features is worth it like @farnabaz said, it is specific to each website and an example how to achieve it best from my POV. I would maybe create a new category for these features, what about "Recipes"? We could later on showcase also how to leverage the scheme-org module by @harlan-zw for instance. |
How about the idea of having a module for it? I know @nuxt/sitemap exists, but seems like content v2 isnβt yet supported |
Let's start with an example in the documentation and get feedback from it first |
For sitemap generation when using |
Recipes sound good. I'm sure we'll also see a bunch of specialised boilerplates and tutorials popping up which will also help users get set up for common use cases. Also, last I heard on the sitemap module was that nitro would handle this as a plugin, so recommending bespoke sitemap generation may not be helpful once it's released. |
Well we will be able to update the example once Nitro offers a better way to do it :) |
Hey there π I'm a bit late on this PR since it is already merged π
This is an attempt to have a module for generating a sitemap for dynamic sites powered by @nuxt/content and prerendered. So far it seems to be working even if code may be improved for better clarity. I would be happy to talk about it and share progress if you are interested π |
Nice work @benoitdemaegdt It would be nice to update the structure to use the module starter for best packaging: https://github.com/nuxt/starter |
π Linked issue
atinux/content-wind#5
β Type of change
π Description
Sometimes users may want to generate a sitemap file, to make it easier for Google to index the content within your website. I personally had this issue, and after a discussion with @atinux within atinux/content-wind#5, he felt this could be good addition to the docs.
π Checklist