diff --git a/.vscode/astrowind/config-schema.json b/.vscode/astrowind/config-schema.json index 0463897..22c2f14 100644 --- a/.vscode/astrowind/config-schema.json +++ b/.vscode/astrowind/config-schema.json @@ -21,12 +21,7 @@ "type": "string" } }, - "required": [ - "name", - "site", - "base", - "trailingSlash" - ], + "required": ["name", "site", "base", "trailingSlash"], "additionalProperties": false }, "metadata": { @@ -42,10 +37,7 @@ "type": "string" } }, - "required": [ - "default", - "template" - ] + "required": ["default", "template"] }, "description": { "type": "string" @@ -60,10 +52,7 @@ "type": "boolean" } }, - "required": [ - "index", - "follow" - ] + "required": ["index", "follow"] }, "openGraph": { "type": "object", @@ -72,10 +61,7 @@ "type": "string" } }, - "required": [ - "site_name", - "type" - ] + "required": ["site_name", "type"] }, "twitter": { "type": "object", @@ -90,20 +76,10 @@ "type": "string" } }, - "required": [ - "handle", - "site", - "cardType" - ] + "required": ["handle", "site", "cardType"] } }, - "required": [ - "title", - "description", - "robots", - "openGraph", - "twitter" - ] + "required": ["title", "description", "robots", "openGraph", "twitter"] }, "i18n": { "type": "object", @@ -115,10 +91,7 @@ "type": "string" } }, - "required": [ - "language", - "textDirection" - ] + "required": ["language", "textDirection"] }, "apps": { "type": "object", @@ -151,16 +124,10 @@ "type": "boolean" } }, - "required": [ - "index" - ] + "required": ["index"] } }, - "required": [ - "isEnabled", - "permalink", - "robots" - ] + "required": ["isEnabled", "permalink", "robots"] }, "list": { "type": "object", @@ -181,16 +148,10 @@ "type": "boolean" } }, - "required": [ - "index" - ] + "required": ["index"] } }, - "required": [ - "isEnabled", - "pathname", - "robots" - ] + "required": ["isEnabled", "pathname", "robots"] }, "category": { "type": "object", @@ -211,16 +172,10 @@ "type": "boolean" } }, - "required": [ - "index" - ] + "required": ["index"] } }, - "required": [ - "isEnabled", - "pathname", - "robots" - ] + "required": ["isEnabled", "pathname", "robots"] }, "tag": { "type": "object", @@ -241,31 +196,16 @@ "type": "boolean" } }, - "required": [ - "index" - ] + "required": ["index"] } }, - "required": [ - "isEnabled", - "pathname", - "robots" - ] + "required": ["isEnabled", "pathname", "robots"] } }, - "required": [ - "isEnabled", - "postsPerPage", - "post", - "list", - "category", - "tag" - ] + "required": ["isEnabled", "postsPerPage", "post", "list", "category", "tag"] } }, - "required": [ - "blog" - ] + "required": ["blog"] }, "analytics": { "type": "object", @@ -277,29 +217,20 @@ "type": "object", "properties": { "id": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "partytown": { "type": "boolean", "default": true } }, - "required": [ - "id" - ] + "required": ["id"] } }, - "required": [ - "googleAnalytics" - ] + "required": ["googleAnalytics"] } }, - "required": [ - "vendors" - ] + "required": ["vendors"] }, "ui": { "type": "object", @@ -385,17 +316,10 @@ "type": "string" } }, - "required": [ - "sans", - "serif", - "heading" - ] + "required": ["sans", "serif", "heading"] } }, - "required": [ - "colors", - "fonts" - ] + "required": ["colors", "fonts"] }, "dark": { "type": "object", @@ -463,30 +387,14 @@ "type": "object" } }, - "required": [ - "colors", - "fonts" - ] + "required": ["colors", "fonts"] } }, - "required": [ - "default", - "dark" - ] + "required": ["default", "dark"] } }, - "required": [ - "theme", - "tokens" - ] + "required": ["theme", "tokens"] } }, - "required": [ - "site", - "metadata", - "i18n", - "apps", - "analytics", - "ui" - ] -} \ No newline at end of file + "required": ["site", "metadata", "i18n", "apps", "analytics", "ui"] +} diff --git a/package.json b/package.json index 8d84e92..7e87f74 100644 --- a/package.json +++ b/package.json @@ -12,13 +12,13 @@ "lint:eslint": "eslint . --ext .js,.ts,.astro" }, "dependencies": { - "@astrojs/check": "^0.4.1", - "@astrojs/rss": "^4.0.1", - "@astrojs/sitemap": "^3.0.4", + "@astrojs/check": "^0.7.0", + "@astrojs/rss": "^4.0.6", + "@astrojs/sitemap": "^3.1.6", "@astrolib/analytics": "^0.5.0", "@astrolib/seo": "^1.0.0-beta.5", "@fontsource-variable/inter": "^5.0.16", - "astro": "^4.1.1", + "astro": "^4.11.0", "astro-icon": "^1.0.2", "limax": "4.1.0", "lodash.merge": "^4.6.2", @@ -26,8 +26,8 @@ "unpic": "^3.16.0" }, "devDependencies": { - "@astrojs/mdx": "^2.0.3", - "@astrojs/partytown": "^2.0.3", + "@astrojs/mdx": "^3.1.1", + "@astrojs/partytown": "^2.1.1", "@astrojs/tailwind": "5.1.0", "@iconify-json/flat-color-icons": "^1.1.10", "@iconify-json/tabler": "^1.1.103", diff --git a/src/components/CustomStyles.astro b/src/components/CustomStyles.astro index 04a2d13..8098b65 100644 --- a/src/components/CustomStyles.astro +++ b/src/components/CustomStyles.astro @@ -29,15 +29,16 @@ import '@fontsource-variable/inter'; --aw-color-secondary: rgb(30 58 138); --aw-color-accent: rgb(109 40 217); - --aw-color-text-heading: rgb(0 0 0); + --aw-color-text-heading: rgb(0 0 0); --aw-color-text-default: rgb(16 16 16); --aw-color-text-muted: rgb(16 16 16 / 66%); --aw-color-bg-page: rgb(255 255 255); --aw-color-bg-page-dark: rgb(3 6 32); - ::selection {background-color: lavender;} - + ::selection { + background-color: lavender; + } } .dark { @@ -49,12 +50,14 @@ import '@fontsource-variable/inter'; --aw-color-secondary: rgb(30 58 138); --aw-color-accent: rgb(109 40 217); - --aw-color-text-heading: rgb(0 0 0); + --aw-color-text-heading: rgb(0 0 0); --aw-color-text-default: rgb(229 236 246); --aw-color-text-muted: rgb(229 236 246 / 66%); --aw-color-bg-page: var(--aw-color-bg-page-dark); - ::selection {background-color: black; color: snow} - + ::selection { + background-color: black; + color: snow; + } } diff --git a/src/components/blog/GridItem.astro b/src/components/blog/GridItem.astro index 360de3d..29712ec 100644 --- a/src/components/blog/GridItem.astro +++ b/src/components/blog/GridItem.astro @@ -7,13 +7,12 @@ import Image from '~/components/common/Image.astro'; import { findImage } from '~/utils/images'; import { getPermalink } from '~/utils/permalinks'; - export interface Props { post: Post; } const { post } = Astro.props; -const image = (await findImage(post.image)); +const image = await findImage(post.image); ---
diff --git a/src/components/blog/SinglePost.astro b/src/components/blog/SinglePost.astro index 6744720..603c7a2 100644 --- a/src/components/blog/SinglePost.astro +++ b/src/components/blog/SinglePost.astro @@ -74,13 +74,7 @@ const { Content } = post;
- { - Content ? ( - - ) : ( - - ) - } + {Content ? : }
diff --git a/src/components/blog/Tags.astro b/src/components/blog/Tags.astro index 04e2a01..5cae62c 100644 --- a/src/components/blog/Tags.astro +++ b/src/components/blog/Tags.astro @@ -1,12 +1,12 @@ --- import { getPermalink } from '~/utils/permalinks'; -import { APP_BLOG } from '~/utils/config'; +import { APP_BLOG } from '~/utils/config'; import type { Post } from '~/types'; export interface Props { tags: Post['tags']; - class?: string; + class?: string; title?: string | undefined; isCategory?: boolean; } @@ -18,7 +18,11 @@ const { tags, class: className = 'text-sm', title = undefined, isCategory = fals tags && Array.isArray(tags) && ( <> <> - {title !== undefined && {title}} + {title !== undefined && ( + + {title} + + )}