diff --git a/astro.config.mjs b/astro.config.mjs index 59d202f..c7d0608 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -13,21 +13,21 @@ import tasks from "./src/utils/tasks"; import { readingTimeRemarkPlugin } from './src/utils/frontmatter.mjs'; -import { ANALYTICS_CONFIG, SITE_CONFIG } from './src/utils/config.ts'; +import { ANALYTICS, SITE } from './src/utils/config.ts'; const __dirname = path.dirname(fileURLToPath(import.meta.url)); const whenExternalScripts = (items = []) => - ANALYTICS_CONFIG.vendors.googleAnalytics.id && ANALYTICS_CONFIG.vendors.googleAnalytics.partytown + ANALYTICS.vendors.googleAnalytics.id && ANALYTICS.vendors.googleAnalytics.partytown ? Array.isArray(items) ? items.map((item) => item()) : [items()] : []; export default defineConfig({ - site: SITE_CONFIG.site, - base: SITE_CONFIG.base, - trailingSlash: SITE_CONFIG.trailingSlash ? 'always' : 'never', + site: SITE.site, + base: SITE.base, + trailingSlash: SITE.trailingSlash ? 'always' : 'never', output: 'static', diff --git a/src/components/Logo.astro b/src/components/Logo.astro index 3675566..f196575 100644 --- a/src/components/Logo.astro +++ b/src/components/Logo.astro @@ -1,7 +1,7 @@ --- -import { SITE_CONFIG } from '~/utils/config'; +import { SITE } from '~/utils/config'; --- - 🚀 {SITE_CONFIG?.name} + 🚀 {SITE?.name} diff --git a/src/components/blog/GridItem.astro b/src/components/blog/GridItem.astro index 3f4a5f1..360de3d 100644 --- a/src/components/blog/GridItem.astro +++ b/src/components/blog/GridItem.astro @@ -1,5 +1,5 @@ --- -import { APP_BLOG_CONFIG } from '~/utils/config'; +import { APP_BLOG } from '~/utils/config'; import type { Post } from '~/types'; import Image from '~/components/common/Image.astro'; @@ -39,7 +39,7 @@ const image = (await findImage(post.image));