From 3012b479916b30f448a73c0f810e70e6e7be864f Mon Sep 17 00:00:00 2001 From: prototypa Date: Wed, 31 Aug 2022 14:02:57 -0400 Subject: [PATCH] Migrate to limax for slugify (CKJ languages bug) --- package.json | 2 +- src/components/widgets/BlogList.astro | 4 ++-- src/pages/[...blog]/[...page].astro | 4 ++-- src/pages/[...blog]/[slug].astro | 4 ++-- .../[...categories]/[category]/[...page].astro | 6 +++--- src/pages/[...tags]/[tag]/[...page].astro | 6 +++--- src/utils/permalinks.js | 16 +++++++--------- 7 files changed, 20 insertions(+), 22 deletions(-) diff --git a/package.json b/package.json index ac141b9..54322ee 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,8 @@ "@tailwindcss/typography": "^0.5.4", "astro": "^1.0.0", "astro-icon": "^0.7.3", + "limax": "^3.0.0", "reading-time": "^1.5.0", - "slugify": "^1.6.5", "subfont": "^6.9.0" } } diff --git a/src/components/widgets/BlogList.astro b/src/components/widgets/BlogList.astro index 2896137..e3563d0 100644 --- a/src/components/widgets/BlogList.astro +++ b/src/components/widgets/BlogList.astro @@ -1,12 +1,12 @@ --- import BlogListItem from "~/components/widgets/BlogListItem.astro"; -const { page } = Astro.props; +const { posts } = Astro.props; ---