Sitemaps

Provide a sitemap to search engines

Introduction

Karbon has uses link to set up the SEO function for your publication. This package automatically provides the robots.txt and sitemap.xml of your publication.

 

Options for setting default value(s)

The nuxt-seo-kit related configuration parameters can be adjusted via nuxt.config.ts. The default configuration options are as follows

// nuxt.config.ts
export default defineNuxtConfig({
	...,
	runtimeConfig: {
    public: {
      trailingSlash: false,
      titleSeparator: '|',
      siteName: 'Karbon',
      siteUrl: 'http://localhost:3000/',
      siteDescription: 'My publication',
      language: 'en',
    },
  },
})
 

Using .env

Adjustments are made to parameters that need to be customised via .env.

# .env
NUXT_PUBLIC_TRAILING_SLASH=<Trailing Slash>
NUXT_PUBLIC_TITLE_SEPARATOR=<Title Separator>
NUXT_PUBLIC_SITE_NAME=<Site Name>
NUXT_PUBLIC_SITE_URL=<Site Url>
NUXT_PUBLIC_SITE_URL=<Site Description>
NUXT_PUBLIC_LANGUAGE=<Language>

Last updated on January 16, 2023