diff --git a/.vscode/settings.json b/.vscode/settings.json
index ee40024..10cdced 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,12 +1,6 @@
{
"css.customData": ["./vscode.tailwind.json"],
- "eslint.validate": [
- "javascript",
- "javascriptreact",
- "astro",
- "typescript",
- "typescriptreact"
- ],
+ "eslint.validate": ["javascript", "javascriptreact", "astro", "typescript", "typescriptreact"],
"files.associations": {
"*.mdx": "markdown"
},
diff --git a/astro.config.mjs b/astro.config.mjs
index 9505516..c7f072e 100644
--- a/astro.config.mjs
+++ b/astro.config.mjs
@@ -12,17 +12,17 @@ import compress from '@playform/compress';
import astrowind from './vendor/integration';
-import { readingTimeRemarkPlugin, responsiveTablesRehypePlugin, lazyImagesRehypePlugin } from './src/utils/frontmatter.mjs';
+import {
+ readingTimeRemarkPlugin,
+ responsiveTablesRehypePlugin,
+ lazyImagesRehypePlugin,
+} from './src/utils/frontmatter.mjs';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const hasExternalScripts = false;
const whenExternalScripts = (items = []) =>
- hasExternalScripts
- ? Array.isArray(items)
- ? items.map((item) => item())
- : [items()]
- : [];
+ hasExternalScripts ? (Array.isArray(items) ? items.map((item) => item()) : [items()]) : [];
export default defineConfig({
output: 'static',
@@ -70,13 +70,13 @@ export default defineConfig({
}),
astrowind({
- config: "./src/config.yaml"
+ config: './src/config.yaml',
}),
],
image: {
service: squooshImageService(),
- domains: ["cdn.pixabay.com"],
+ domains: ['cdn.pixabay.com'],
},
markdown: {
diff --git a/package-lock.json b/package-lock.json
index f414252..08ab79f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "@onwidget/astrowind",
- "version": "1.0.0-beta.32",
+ "version": "1.0.0-beta.33",
"lockfileVersion": 3,
"requires": true,
"packages": {
@@ -29,6 +29,7 @@
"@iconify-json/tabler": "^1.1.110",
"@playform/compress": "0.0.3",
"@tailwindcss/typography": "^0.5.13",
+ "@types/eslint__js": "^8.42.3",
"@types/js-yaml": "^4.0.9",
"@types/lodash.merge": "^4.6.9",
"@typescript-eslint/eslint-plugin": "^7.7.1",
@@ -2571,6 +2572,25 @@
"@types/ms": "*"
}
},
+ "node_modules/@types/eslint": {
+ "version": "8.56.10",
+ "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.56.10.tgz",
+ "integrity": "sha512-Shavhk87gCtY2fhXDctcfS3e6FdxWkCx1iUZ9eEUbh7rTqlZT0/IzOkCOVt0fCjcFuZ9FPYfuezTBImfHCDBGQ==",
+ "dev": true,
+ "dependencies": {
+ "@types/estree": "*",
+ "@types/json-schema": "*"
+ }
+ },
+ "node_modules/@types/eslint__js": {
+ "version": "8.42.3",
+ "resolved": "https://registry.npmjs.org/@types/eslint__js/-/eslint__js-8.42.3.tgz",
+ "integrity": "sha512-alfG737uhmPdnvkrLdZLcEKJ/B8s9Y4hrZ+YAdzUeoArBlSUERA2E87ROfOaS4jd/C45fzOoZzidLc1IPwLqOw==",
+ "dev": true,
+ "dependencies": {
+ "@types/eslint": "*"
+ }
+ },
"node_modules/@types/estree": {
"version": "1.0.5",
"license": "MIT"
diff --git a/package.json b/package.json
index 188b867..3a20686 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@onwidget/astrowind",
- "version": "1.0.0-beta.32",
+ "version": "1.0.0-beta.33",
"description": "AstroWind: A free template using Astro 4.0 and Tailwind CSS. Astro starter theme.",
"type": "module",
"private": true,
@@ -38,6 +38,7 @@
"@iconify-json/tabler": "^1.1.110",
"@playform/compress": "0.0.3",
"@tailwindcss/typography": "^0.5.13",
+ "@types/eslint__js": "^8.42.3",
"@types/js-yaml": "^4.0.9",
"@types/lodash.merge": "^4.6.9",
"@typescript-eslint/eslint-plugin": "^7.7.1",
diff --git a/src/components/CustomStyles.astro b/src/components/CustomStyles.astro
index 26ce2db..b17d3ae 100644
--- a/src/components/CustomStyles.astro
+++ b/src/components/CustomStyles.astro
@@ -17,7 +17,6 @@ import '@fontsource-variable/inter';
// Oswald
// 'Space Grotesk'
// Urbanist
-
---
\ No newline at end of file
+
diff --git a/src/components/Logo.astro b/src/components/Logo.astro
index ae9b9fd..8469792 100644
--- a/src/components/Logo.astro
+++ b/src/components/Logo.astro
@@ -2,6 +2,8 @@
import { SITE } from 'astrowind:config';
---
-
+
🚀 {SITE?.name}
diff --git a/src/components/blog/GridItem.astro b/src/components/blog/GridItem.astro
index 3625a68..2b3ba44 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);
---