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 Sitemap #7

Open
jasongitmail opened this issue Oct 2, 2023 · 2 comments
Open

Add Sitemap #7

jasongitmail opened this issue Oct 2, 2023 · 2 comments

Comments

@jasongitmail
Copy link

This is a cool project!

I noticed it needs a sitemap still for SEO. I recently created a package for SvelteKit called Super Sitemap (npm), to make this easy. Give it a look, and if you decide to use it, lmk if you have any questions. :)

Basic example below and advanced example.

// /src/routes/sitemap.xml/+server.ts
import * as sitemap from 'super-sitemap';
import type { RequestHandler } from '@sveltejs/kit';

export const GET: RequestHandler = async () => {
  return await sitemap.response({
    origin: 'https://example.com'
  });
};
@JustinyAhin
Copy link
Collaborator

Thank you for raising this @jasongitmail.
Yes, sitemap is also on my list.

I'm thinking about setting up a demo site, to which I'd add the sitemap.

Your package looks awesome. I used to create the sitemaps manually, but it looks like this will make the whole thing way simpler.

@jasongitmail
Copy link
Author

Glad to hear :)

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

No branches or pull requests

2 participants