diff --git a/astro.config.mjs b/astro.config.mjs index de36400..10090f2 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -31,10 +31,6 @@ export default defineConfig({ output: 'static', - build: { - inlineStylesheets: 'auto', - }, - integrations: [ tailwind({ applyBaseStyles: false, diff --git a/package.json b/package.json index 431943e..ca01d52 100644 --- a/package.json +++ b/package.json @@ -14,10 +14,11 @@ }, "dependencies": { "@astrojs/rss": "^3.0.0", + "@astrojs/sitemap": "^3.0.0", "@astrolib/analytics": "^0.4.2", "@astrolib/seo": "^1.0.0-beta.4", "@fontsource-variable/inter": "^5.0.8", - "astro": "^3.0.1", + "astro": "^3.0.2", "astro-icon": "^1.0.0-next.2", "limax": "4.1.0", "lodash.merge": "^4.6.2", @@ -26,7 +27,6 @@ "devDependencies": { "@astrojs/mdx": "^1.0.0", "@astrojs/partytown": "^2.0.0", - "@astrojs/sitemap": "^3.0.0", "@astrojs/tailwind": "5.0.0", "@iconify-json/flat-color-icons": "^1.1.7", "@iconify-json/tabler": "^1.1.89", @@ -43,7 +43,6 @@ "prettier": "^3.0.3", "prettier-plugin-astro": "^0.12.0", "reading-time": "^1.5.0", - "svgo": "3.0.2", "tailwind-merge": "^1.14.0", "tailwindcss": "^3.3.3", "typescript": "^5.2.2" diff --git a/src/components/blog/SinglePost.astro b/src/components/blog/SinglePost.astro index 409a893..c4b621c 100644 --- a/src/components/blog/SinglePost.astro +++ b/src/components/blog/SinglePost.astro @@ -16,7 +16,7 @@ export interface Props { } const { post, url } = Astro.props; -const Content = post?.Content || null; +const { Content } = post; ---
@@ -73,13 +73,13 @@ const Content = post?.Content || null; }
{ Content ? ( ) : ( - + ) }
diff --git a/src/content/post/astrowind-template-in-depth.mdx b/src/content/post/astrowind-template-in-depth.mdx index 18fffaa..7b5c142 100644 --- a/src/content/post/astrowind-template-in-depth.mdx +++ b/src/content/post/astrowind-template-in-depth.mdx @@ -37,8 +37,8 @@ The styling mechanism consists of the following files (all paths are prefixed wi header section. See next. - This layout is used for all of the pages rendered by _AstroWind_. The contents of _tailwind.css_ and _CustomStyles.astro_ component, - described above, is injected into the html header. + This layout is used for all of the pages rendered by _AstroWind_. The contents of _tailwind.css_ and + _CustomStyles.astro_ component, described above, is injected into the html header. ### Dark Mode diff --git a/src/types.d.ts b/src/types.d.ts index 8a89204..5c2e7b3 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -1,3 +1,5 @@ +import type { AstroComponentFactory } from 'astro/runtime/server/index.js'; + export interface Post { /** A unique ID number that identifies a post. */ id: string; @@ -34,7 +36,7 @@ export interface Post { draft?: boolean; /** */ - Content?: unknown; + Content?: AstroComponentFactory; content?: string; /** */ diff --git a/src/utils/utils.ts b/src/utils/utils.ts index 36936d5..f7bcb07 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -23,7 +23,7 @@ export const trim = (str = '', ch?: string) => { export const toUiAmount = (amount: number) => { if (!amount) return 0; - let value; + let value: string; if (amount >= 1000000000) { const formattedNumber = (amount / 1000000000).toFixed(1);