Skip to content

Add Sitemap #7

Open
Open
@jasongitmail

Description

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'
  });
};

Activity

JustinyAhin

JustinyAhin commented on Oct 6, 2023

@JustinyAhin
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

jasongitmail commented on Oct 6, 2023

@jasongitmail
Author

Glad to hear :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Add Sitemap · Issue #7 · okupter/kitforstartups