Skip to content

Commit

Permalink
finsihed SEO improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
zoey-kaiser committed Aug 2, 2024
1 parent 2953378 commit 989abf2
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { defineConfig } from 'vitepress'
import { routes as navRoutes } from './routes/navbar'
import { routes as sidebarRoutes } from './routes/sidebar'
import { headConfig, sitemapConfig } from './head'

// https://vitepress.dev/reference/site-config
export default defineConfig({
Expand All @@ -13,7 +14,8 @@ export default defineConfig({
lang: 'en-US',
appearance: 'dark',
lastUpdated: true,
head: [['link', { rel: 'icon', href: '/favicon.ico' }]],
sitemap: sitemapConfig,
head: headConfig,
themeConfig: {
logo: {
light: '/logo-light.svg',
Expand Down
20 changes: 20 additions & 0 deletions .vitepress/head.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import type { HeadConfig } from 'vitepress'

const HOST_NAME = 'https://sidebase.io'
const OG_IMAGE_URL = `${HOST_NAME}/sidebase-og.jpg`

export const sitemapConfig = {
hostname: HOST_NAME
}

export const headConfig: HeadConfig[] = [
['link', { rel: 'icon', href: '/favicon.ico' }],
['meta', { name: 'theme-color', content: '#30A36C' }],
['meta', { property: 'og:title', content: 'sidebase - by SIDESTREAM' }],
['meta', { property: 'og:description', content: 'The web app development kit to build production fullstack Nuxt 3 apps quickly.' }],
['meta', { property: 'og:site_name', content: 'sidebase' }],
['meta', { property: 'og:type', content: 'website' }],
['meta', { property: 'og:locale', content: 'en' }],
['meta', { property: 'og:image', content: OG_IMAGE_URL }],
['meta', { property: 'og:url', content: HOST_NAME }],
]
Binary file added src/public/sidebase-og.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 989abf2

Please sign in to comment.