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

Add an example for generating sitemaps #2553

Merged
merged 1 commit into from
May 6, 2024
Merged

Conversation

JoeyMckenzie
Copy link
Contributor

Huge fan of Leptos and all the work everyone has done to make it the most fun web framework on the market. I recently rebuilt my website using Leptos and couldn't find an example (though I probably wasn't looking hard enought) for generating dynamic sitemaps. I thought it would be helpful for anyone looking to do the same on the websites they're building, especially for sites with lots of a pages. No harm done if the maintainers don't see any value in this example - this was purely for my use case.

The example is based on the Axum start template and uses sqlx for querying content, alongside the xml crate for generating the sitemap file.

@sjud
Copy link
Contributor

sjud commented Apr 24, 2024

This would make a good addition to the Projects directory! :)
https://github.com/leptos-rs/leptos/tree/main/projects

@JoeyMckenzie
Copy link
Contributor Author

@sjud Ah, good to know. Moved everything over to the project directory, thanks for calling that out!

@gbj
Copy link
Collaborator

gbj commented May 6, 2024

Thanks!

@gbj gbj merged commit 4e4a770 into leptos-rs:main May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants