diff --git a/.eslintrc.js b/.eslintrc.js index 5b067cd..296d99a 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,3 +1,4 @@ +/** @type {import("eslint").Linter.Config} */ module.exports = { env: { node: true, @@ -5,7 +6,9 @@ module.exports = { browser: true, }, extends: ['eslint:recommended', 'plugin:astro/recommended'], + parser: '@typescript-eslint/parser', parserOptions: { + tsconfigRootDir: __dirname, ecmaVersion: 'latest', sourceType: 'module', }, diff --git a/README.md b/README.md index d6595b7..5ecba7d 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** and ***RTL***. +- ✅ 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** (using new [Astro Assets](https://astro.build/blog/images/) and [Unpic](https://unpic.pics/lib/) for Universal image CDN) and **Font optimization**. diff --git a/astro.config.mjs b/astro.config.mjs index c7d0608..de36400 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -9,7 +9,7 @@ import mdx from '@astrojs/mdx'; import partytown from '@astrojs/partytown'; import compress from 'astro-compress'; import icon from 'astro-icon'; -import tasks from "./src/utils/tasks"; +import tasks from './src/utils/tasks'; import { readingTimeRemarkPlugin } from './src/utils/frontmatter.mjs'; @@ -32,7 +32,7 @@ export default defineConfig({ output: 'static', build: { - inlineStylesheets: 'auto' + inlineStylesheets: 'auto', }, integrations: [ diff --git a/public/decapcms/config.yml b/public/decapcms/config.yml index e1f93f5..841a67b 100644 --- a/public/decapcms/config.yml +++ b/public/decapcms/config.yml @@ -2,33 +2,28 @@ backend: name: git-gateway branch: main -media_folder: "src/assets/images" -public_folder: "/_astro" +media_folder: 'src/assets/images' +public_folder: '/_astro' collections: - - name: "post" - label: "Post" - folder: "src/content/post" + - name: 'post' + label: 'Post' + folder: 'src/content/post' create: true fields: - - { label: "Title", name: "title", widget: "string" } - - { label: "Excerpt", name: "excerpt", widget: "string" } - - { label: "Category", name: "category", widget: "string" } + - { label: 'Title', name: 'title', widget: 'string' } + - { label: 'Excerpt', name: 'excerpt', widget: 'string' } + - { label: 'Category', name: 'category', widget: 'string' } - { - label: "Tags", - name: "tags", - widget: "list", + label: 'Tags', + name: 'tags', + widget: 'list', allow_add: true, allow_delete: true, collapsed: false, - field: { label: "Tag", name: "tag", widget: "string" }, + field: { label: 'Tag', name: 'tag', widget: 'string' }, } - - { label: "Image", name: "image", widget: "string" } - - { - label: "Publish Date", - name: "publishDate", - widget: "datetime", - required: false, - } - - { label: "Author", name: "author", widget: "string" } - - { label: "Content", name: "body", widget: "markdown" } \ No newline at end of file + - { label: 'Image', name: 'image', widget: 'string' } + - { label: 'Publish Date', name: 'publishDate', widget: 'datetime', required: false } + - { label: 'Author', name: 'author', widget: 'string' } + - { label: 'Content', name: 'body', widget: 'markdown' } diff --git a/public/decapcms/index.html b/public/decapcms/index.html index 7c38233..8abf41e 100644 --- a/public/decapcms/index.html +++ b/public/decapcms/index.html @@ -1,4 +1,4 @@ - +
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.