diff --git a/astro.config.ts b/astro.config.ts index 18874fe..915d8f0 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -10,11 +10,12 @@ import rehypeCleanup from './src/plugins/rehype-cleanup.mjs' import rehypeImageProcessor from './src/plugins/rehype-image-processor.mjs' import rehypeCopyCode from './src/plugins/rehype-copy-code.mjs' import remarkTOC from './src/plugins/remark-toc.mjs' -import { SITE } from './src/config' +import { themeConfig } from './src/config' +import { imageConfig } from './src/utils/image-config' import path from 'path' export default defineConfig({ - site: SITE.website, + site: themeConfig.site.website, devToolbar: { enabled: false }, @@ -24,7 +25,8 @@ export default defineConfig({ }, image: { service: { - entrypoint: 'astro/assets/services/sharp' + entrypoint: 'astro/assets/services/sharp', + config: imageConfig } }, markdown: { diff --git a/src/components/features/FormattedDate.astro b/src/components/features/FormattedDate.astro index 6aec9d6..66185ab 100644 --- a/src/components/features/FormattedDate.astro +++ b/src/components/features/FormattedDate.astro @@ -1,6 +1,6 @@ --- +import { themeConfig } from '@/config' import { formatDate } from '@/utils/date' -import { SITE } from '@/config' interface Props { date: Date @@ -12,8 +12,9 @@ const { date, format } = Astro.props