diff --git a/.vscode/astrowind/config-schema.json b/.vscode/astrowind/config-schema.json index e101ea8..22fd20f 100644 --- a/.vscode/astrowind/config-schema.json +++ b/.vscode/astrowind/config-schema.json @@ -239,14 +239,15 @@ "googleAnalytics": { "type": "object", "properties": { - "isEnabled": { - "type": "boolean" - }, "id": { - "type": "null" + "type": "string" + }, + "partytown": { + "type": "boolean", + "default": true } }, - "required": ["isEnabled", "id"] + "required": ["id"] } }, "required": ["googleAnalytics"] diff --git a/README.md b/README.md index e95c295..ae4e47b 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ ## Features -- ✅ Integration with **Tailwind CSS** ([@astrojs/tailwind](https://docs.astro.build/en/guides/integrations-guide/tailwind/)) supporting **Dark mode**. +- ✅ Integration with **Tailwind CSS** ([@astrojs/tailwind](https://docs.astro.build/en/guides/integrations-guide/tailwind/)) supporting **Dark mode** and ***RTL***. - ✅ **Production-ready** scores in [Lighthouse](https://web.dev/measure/) and [PageSpeed Insights](https://pagespeed.web.dev/) reports. - ✅ **Fast and SEO friendly blog** with automatic **RSS feed** ([@astrojs/rss](https://docs.astro.build/en/guides/rss/)), [**MDX** support](https://docs.astro.build/en/guides/integrations-guide/mdx/), **Categories & Tags**, **Social Share**, ... - ✅ **Image optimization** ([@astrojs/images](https://docs.astro.build/en/guides/integrations-guide/image/)) and **Font optimization**. @@ -213,7 +213,6 @@ apps: analytics: vendors: googleAnalytics: - isEnabled: false id: null # or "G-XXXXXXXXXX" ui: diff --git a/astro.config.mjs b/astro.config.mjs index 18ab365..7e3db13 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -17,7 +17,7 @@ import { SITE_CONFIG, ANALYTICS_CONFIG } from './src/utils/config.ts'; const __dirname = path.dirname(fileURLToPath(import.meta.url)); const whenExternalScripts = (items = []) => - ANALYTICS_CONFIG.vendors.googleAnalytics.isEnabled + ANALYTICS_CONFIG.vendors.googleAnalytics.id && ANALYTICS_CONFIG.vendors.googleAnalytics.partytown ? Array.isArray(items) ? items.map((item) => item()) : [items()] @@ -33,7 +33,7 @@ export default defineConfig({ integrations: [ tailwind({ - applyBaseStyles: false + applyBaseStyles: false, }), sitemap(), image({ diff --git a/package.json b/package.json index b783ca8..612d1b5 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "@types/lodash.merge": "^4.6.7", "@typescript-eslint/eslint-plugin": "^6.3.0", "@typescript-eslint/parser": "^6.3.0", - "astro": "^2.10.3", + "astro": "^2.10.5", "astro-icon": "^1.0.0-next.2", "eslint": "^8.46.0", "eslint-plugin-astro": "^0.28.0", diff --git a/src/components/Logo.astro b/src/components/Logo.astro index 58befe6..3675566 100644 --- a/src/components/Logo.astro +++ b/src/components/Logo.astro @@ -2,6 +2,6 @@ import { SITE_CONFIG } from '~/utils/config'; --- - + 🚀 {SITE_CONFIG?.name} diff --git a/src/components/blog/ListItem.astro b/src/components/blog/ListItem.astro index 11d1d90..97ef26d 100644 --- a/src/components/blog/ListItem.astro +++ b/src/components/blog/ListItem.astro @@ -47,7 +47,7 @@ const link = APP_BLOG_CONFIG?.post?.isEnabled ? getPermalink(post.permalink, 'po
- + { post.category && ( <> diff --git a/src/components/blog/SinglePost.astro b/src/components/blog/SinglePost.astro index 7a4a3a6..fff8337 100644 --- a/src/components/blog/SinglePost.astro +++ b/src/components/blog/SinglePost.astro @@ -25,13 +25,13 @@ const Content = post?.Content || null;

- + { post.category && ( <> {' '} ·{' '} - + {post.category.replaceAll('-', ' ')} @@ -86,7 +86,7 @@ const Content = post?.Content || null; }

- +
diff --git a/src/components/blog/Tags.astro b/src/components/blog/Tags.astro index 9902572..1adfa82 100644 --- a/src/components/blog/Tags.astro +++ b/src/components/blog/Tags.astro @@ -22,7 +22,7 @@ const { tags, class: className = 'text-sm', title = undefined, isCategory = fals