diff --git a/package.json b/package.json index 9a7cd97..2581fc6 100755 --- a/package.json +++ b/package.json @@ -15,47 +15,47 @@ "remove-multilang": "node scripts/removeMultilang.js && yarn format" }, "dependencies": { - "@astrojs/mdx": "^2.3.0", - "@astrojs/react": "^3.3.0", - "@astrojs/rss": "^4.0.5", - "@astrojs/sitemap": "^3.1.2", + "@astrojs/mdx": "^3.1.3", + "@astrojs/react": "^3.6.1", + "@astrojs/rss": "^4.0.7", + "@astrojs/sitemap": "^3.1.6", "@astrojs/tailwind": "^5.1.0", - "astro": "^4.6.1", + "astro": "^4.12.3", "astro-auto-import": "^0.4.2", - "astro-font": "^0.0.80", + "astro-font": "^0.0.81", "date-fns": "^3.6.0", "disqus-react": "^1.1.5", "github-slugger": "^2.0.0", "gray-matter": "^4.0.3", - "marked": "^12.0.1", - "prettier-plugin-astro": "^0.13.0", - "prettier-plugin-tailwindcss": "^0.5.13", + "marked": "^13.0.3", + "prettier-plugin-astro": "^0.14.1", + "prettier-plugin-tailwindcss": "^0.6.5", "prop-types": "^15.8.1", - "react": "^18.2.0", - "react-dom": "^18.2.0", - "react-icons": "^5.0.1", + "react": "^18.3.1", + "react-dom": "^18.3.1", + "react-icons": "^5.2.1", "react-lite-youtube-embed": "^2.4.0", "remark-collapse": "^0.1.2", "remark-toc": "^9.0.0", - "swiper": "^11.1.1" + "swiper": "^11.1.8" }, "devDependencies": { "@tailwindcss/forms": "^0.5.7", - "@tailwindcss/typography": "^0.5.12", + "@tailwindcss/typography": "^0.5.13", "@types/marked": "^5.0.2", - "@types/node": "20.12.7", - "@types/react": "18.2.78", - "@types/react-dom": "18.2.25", + "@types/node": "22.0.0", + "@types/react": "18.3.3", + "@types/react-dom": "18.3.0", "autoprefixer": "^10.4.19", - "eslint": "^9.0.0", - "postcss": "^8.4.38", - "prettier": "^3.2.5", - "prettier-plugin-astro": "^0.13.0", - "prettier-plugin-tailwindcss": "^0.5.13", - "sass": "^1.75.0", - "sharp": "0.33.1", + "eslint": "^9.8.0", + "postcss": "^8.4.40", + "prettier": "^3.3.3", + "prettier-plugin-astro": "^0.14.1", + "prettier-plugin-tailwindcss": "^0.6.5", + "sass": "^1.77.8", + "sharp": "0.33.4", "tailwind-bootstrap-grid": "^5.1.0", - "tailwindcss": "^3.4.3", - "typescript": "5.4.5" + "tailwindcss": "^3.4.7", + "typescript": "5.5.4" } } diff --git a/readme.md b/readme.md index d098e30..ab5c00c 100755 --- a/readme.md +++ b/readme.md @@ -26,6 +26,7 @@ ## π Key Features - π₯ Multi-Authors +- π Multilingual - π― Similar Posts Suggestion - π Search Functionality - π Dark Mode @@ -65,10 +66,10 @@ ### π¦ Dependencies -- astro 4.0+ +- astro v4.12+ - node v20.10+ - npm v10.2+ -- tailwind v3.3+ +- tailwind v3.4+ ### π Install Dependencies @@ -109,12 +110,14 @@ docker run -it --rm astroplate ash ``` + ## π Reporting Issues We use GitHub Issues as the official bug tracker for this Template. Please Search [existing issues](https://github.com/zeon-studio/astroplate/issues). Itβs possible someone has already reported the same problem. If your problem or idea has not been addressed yet, feel free to [open a new issue](https://github.com/zeon-studio/astroplate/issues). + ## π License Copyright (c) 2023 - Present, Designed & Developed by [Zeon Studio](https://zeon.studio/) diff --git a/src/config/config.json b/src/config/config.json index 83920f1..834fbf1 100755 --- a/src/config/config.json +++ b/src/config/config.json @@ -22,7 +22,7 @@ "blog_folder": "blog", "default_language": "en", "disable_languages": [], - "default_language_in_path": false + "default_language_in_subdir": true }, "params": { diff --git a/src/content/pages/config.ts b/src/content/pages/config.ts deleted file mode 100755 index b159fc5..0000000 --- a/src/content/pages/config.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { defineCollection, z } from "astro:content"; - -const elementsCollection = defineCollection({ - schema: z.object({ - title: z.string(), - meta_title: z.string().optional(), - description: z.string(), - draft: z.boolean().optional(), - }), -}); - -const privacyCollection = defineCollection({ - schema: z.object({ - title: z.string(), - meta_title: z.string().optional(), - description: z.string(), - draft: z.boolean().optional(), - }), -}); - -export const collections = { - elements: elementsCollection, - privacy: privacyCollection, -}; diff --git a/src/layouts/helpers/LanguageSwitcher.tsx b/src/layouts/helpers/LanguageSwitcher.tsx index feb601b..5b60f59 100644 --- a/src/layouts/helpers/LanguageSwitcher.tsx +++ b/src/layouts/helpers/LanguageSwitcher.tsx @@ -1,5 +1,5 @@ import config from "@/config/config.json"; -import languages from "@/config/language.json"; +import languages from "@/config/language.json"; `` import React from "react"; const LanguageSwitcher = ({ @@ -21,11 +21,12 @@ const LanguageSwitcher = ({ // Sort languages by weight and filter out disabled languages const sortedLanguages = languages + // @ts-ignore .filter(language => !config.settings.disable_languages.includes(language.languageCode)) .sort((a, b) => a.weight - b.weight); return ( -