fix: resolve undefined slug in Share.astro component-closes #66

This commit is contained in:
Al Murad Uzzaman
2025-04-20 10:50:01 +06:00
parent 5f364782cf
commit f58e8edb13
2 changed files with 15 additions and 14 deletions
+14 -13
View File
@@ -1,6 +1,6 @@
{ {
"name": "astroplate", "name": "astroplate",
"version": "5.4.0", "version": "5.4.1",
"description": "Astro and Tailwindcss boilerplate", "description": "Astro and Tailwindcss boilerplate",
"author": "zeon.studio", "author": "zeon.studio",
"license": "MIT", "license": "MIT",
@@ -17,18 +17,18 @@
}, },
"dependencies": { "dependencies": {
"@astrojs/check": "0.9.4", "@astrojs/check": "0.9.4",
"@astrojs/mdx": "4.2.3", "@astrojs/mdx": "4.2.4",
"@astrojs/react": "4.2.3", "@astrojs/react": "4.2.4",
"@astrojs/rss": "4.0.11", "@astrojs/rss": "4.0.11",
"@astrojs/sitemap": "3.3.0", "@astrojs/sitemap": "3.3.0",
"astro": "5.6.1", "astro": "5.7.4",
"astro-auto-import": "^0.4.4", "astro-auto-import": "^0.4.4",
"astro-font": "^1.0.0", "astro-font": "^1.1.0",
"date-fns": "^4.1.0", "date-fns": "^4.1.0",
"disqus-react": "^1.1.6", "disqus-react": "^1.1.6",
"github-slugger": "^2.0.0", "github-slugger": "^2.0.0",
"gray-matter": "^4.0.3", "gray-matter": "^4.0.3",
"marked": "^15.0.7", "marked": "^15.0.8",
"prop-types": "^15.8.1", "prop-types": "^15.8.1",
"react": "^19.1.0", "react": "^19.1.0",
"react-dom": "^19.1.0", "react-dom": "^19.1.0",
@@ -36,21 +36,22 @@
"react-lite-youtube-embed": "^2.4.0", "react-lite-youtube-embed": "^2.4.0",
"remark-collapse": "^0.1.2", "remark-collapse": "^0.1.2",
"remark-toc": "^9.0.0", "remark-toc": "^9.0.0",
"swiper": "^11.2.6" "swiper": "^11.2.6",
"vite": "^6.3.2"
}, },
"devDependencies": { "devDependencies": {
"@tailwindcss/forms": "^0.5.10", "@tailwindcss/forms": "^0.5.10",
"@tailwindcss/typography": "^0.5.16", "@tailwindcss/typography": "^0.5.16",
"@tailwindcss/vite": "^4.1.3", "@tailwindcss/vite": "^4.1.4",
"@types/node": "22.14.0", "@types/node": "22.14.1",
"@types/react": "19.1.0", "@types/react": "19.1.2",
"@types/react-dom": "19.1.1", "@types/react-dom": "19.1.2",
"eslint": "^9.24.0", "eslint": "^9.25.0",
"prettier": "^3.5.3", "prettier": "^3.5.3",
"prettier-plugin-astro": "^0.14.1", "prettier-plugin-astro": "^0.14.1",
"prettier-plugin-tailwindcss": "^0.6.11", "prettier-plugin-tailwindcss": "^0.6.11",
"sharp": "0.33.5", "sharp": "0.33.5",
"tailwindcss": "^4.1.3", "tailwindcss": "^4.1.4",
"typescript": "^5.8.3" "typescript": "^5.8.3"
} }
} }
+1 -1
View File
@@ -88,7 +88,7 @@ const { title, description, author, categories, image, date, tags } = post.data;
className="social-icons" className="social-icons"
title={title} title={title}
description={description} description={description}
slug={post.slug} slug={post.id}
/> />
</div> </div>
</div> </div>