Skip to content
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

[FEATURE REQUEST]: Add option to dynamically generate a sitemap.xml #91

Open
Paillat-dev opened this issue Apr 23, 2024 · 3 comments
Open
Labels
enhancement New feature or request

Comments

@Paillat-dev
Copy link

Feature request

What is motivation or use case for adding/changing the behaviour?
Having an option to have the plugin generate dynamically a sitemap.xml file containing all files / all files matching some criteria.

Describe the solution you'd like
I don't really have any syntax idea.

Describe alternatives you've considered
Just doing it manually, it's okay as long as there aren't too many pages.

@webdiscus
Copy link
Owner

Hallo @Paillat-dev,

thanks for the feature request.

The plugin is ready to write own plugin or callback to generate a tree of the used resources.

  1. you can use the verbose: true options to display all processed resources in terminal output
  2. you can use the afterEmit callback or hook where you have full list of all resources used in all entrypoints.
  3. you can see how you can write own plugin for the plugin using the afterEmit hook or afterEmit callback. In this example is a simple implementation of a manifest. Easily you can adapt it to generate a sitemap.xml.

Тo be honest, the last time I generated a sitemap.xml was more than 15 years ago ;-)
Who use it today?

@webdiscus webdiscus changed the title [ENHANCEMENT]: Add option to dinamically generate a sitemap.xml [FEATURE REQUEST]: Add option to dynamically generate a sitemap.xml Apr 23, 2024
@webdiscus webdiscus added the enhancement New feature or request label Apr 23, 2024
@Paillat-dev
Copy link
Author

I mean I would answer myself, but more seriously, it is still somewhat relevant for search engines, and cand speed up indexation quite a bit when it's used, at least from what I noticed. I'll see what I can do with that and maybe reply here, or even open a pr. Thanks for the info!

@webdiscus
Copy link
Owner

The only thing that is not contained in the list are static resources that have not been processed and links to pages.
But it can by crawled and tricky cached using the sources option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants