refactor: update site metadata structure
This commit is contained in:
parent
71d1df3bd7
commit
931bf7277c
15 changed files with 123 additions and 114 deletions
|
@ -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',
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue