Features SEO
1. Open
/src/lib/just-launch-it.config.ts
and add values under the SEO settings for
your applications name
, description
and domain
. These
values are used to insert the default SEO tags for your app.2. To add custom SEO tags to a page, use the pre-built
<SeoTags>
component which
optionally takes title
, description
and canonicalUrlRelative
properties.
/src/routes/(pages)/my-special-page/+page.svelte
1<SeoTags title="Privacy Policy" canonicalUrlRelative="/privacy-policy" />
It is recommended to at least set a Title and Canonical URL for each important public-facing
page.
3. If you're adding an important public-facing page, you can optionally add it to your
sitemap.xml
file used by search engines to crawl your site.
/src/routes/sitemap.xml/+server.ts
1const pages = ['/', '/docs', '/privacy-policy', '/terms-of-service'];