refactor: update site metadata structure

This commit is contained in:
enscribe 2025-03-22 17:21:30 -07:00
parent 71d1df3bd7
commit 931bf7277c
No known key found for this signature in database
GPG key ID: 9BBD5C4114E25322
15 changed files with 123 additions and 114 deletions

View file

@ -1,37 +1,53 @@
export type Site = {
TITLE: string
DESCRIPTION: string
EMAIL: string
NUM_POSTS_ON_HOMEPAGE: number
POSTS_PER_PAGE: number
SITEURL: string
}
export type Link = {
href: string
label: string
}
import type { IconMap, SocialLink, Site } from '@/types'
export const SITE: Site = {
TITLE: 'astro-erudite',
DESCRIPTION:
title: 'astro-erudite',
description:
'astro-erudite is a opinionated, unstyled blogging template—built with Astro, Tailwind, and shadcn/ui.',
EMAIL: 'jason@enscribe.dev',
NUM_POSTS_ON_HOMEPAGE: 2,
POSTS_PER_PAGE: 3,
SITEURL: 'https://astro-erudite.vercel.app',
href: 'https://astro-erudite.vercel.app',
featuredPostCount: 2,
postsPerPage: 3,
}
export const NAV_LINKS: Link[] = [
{ href: '/blog', label: 'blog' },
{ href: '/authors', label: 'authors' },
{ href: '/about', label: 'about' },
{ href: '/tags', label: 'tags' },
export const NAV_LINKS: SocialLink[] = [
{
href: '/blog',
label: 'blog',
},
{
href: '/authors',
label: 'authors',
},
{
href: '/about',
label: 'about',
},
]
export const SOCIAL_LINKS: Link[] = [
{ href: 'https://github.com/jktrn', label: 'GitHub' },
{ href: 'https://twitter.com/enscry', label: 'Twitter' },
{ href: 'jason@enscribe.dev', label: 'Email' },
{ href: '/rss.xml', label: 'RSS' },
export const SOCIAL_LINKS: SocialLink[] = [
{
href: 'https://github.com/jktrn',
label: 'GitHub',
},
{
href: 'https://twitter.com/enscry',
label: 'Twitter',
},
{
href: 'mailto:jason@enscribe.dev',
label: 'Email',
},
{
href: '/rss.xml',
label: 'RSS',
},
]
export const ICON_MAP: IconMap = {
Website: 'lucide:globe',
GitHub: 'lucide:github',
LinkedIn: 'lucide:linkedin',
Twitter: 'lucide:twitter',
Email: 'lucide:mail',
RSS: 'lucide:rss',
}