From 333f99b27c76839674660991c8fdafc7ecaf66be Mon Sep 17 00:00:00 2001 From: Damillora Date: Tue, 3 Dec 2024 03:27:00 +0700 Subject: [PATCH] feat: update new image formatting in post --- package-lock.json | 14 +++++++------- package.json | 2 +- src/routes/[tag]/[slug]/+page.svelte | 9 ++++++--- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7e0021b..91498b5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "name": "@damillora/shallie", "version": "1.0.0", "dependencies": { - "@damillora/plachta": "^6.6.0", + "@damillora/plachta": "^6.7.0", "@directus/sdk": "^18.0.0" }, "devDependencies": { @@ -55,9 +55,9 @@ } }, "node_modules/@damillora/plachta": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/@damillora/plachta/-/plachta-6.6.0.tgz", - "integrity": "sha512-P8MWjHrcQPU1TKJEVQXxN7Wzl93NjAFBDzi6szSOfx3qTQ6GENIObdctU9Q5k4wRcZySguC8Hhw7ux2E9SCh1A==", + "version": "6.7.0", + "resolved": "https://registry.npmjs.org/@damillora/plachta/-/plachta-6.7.0.tgz", + "integrity": "sha512-Mkwz+8zUDl34/QdVF73YFnZbI50zIXYb0h2St2NAjAkZILGUgtlNuup0wftz7JyhwWUVLn1+1bwT727KC1OE/w==", "dependencies": { "svelte": "^5.0.0" } @@ -4415,9 +4415,9 @@ } }, "@damillora/plachta": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/@damillora/plachta/-/plachta-6.6.0.tgz", - "integrity": "sha512-P8MWjHrcQPU1TKJEVQXxN7Wzl93NjAFBDzi6szSOfx3qTQ6GENIObdctU9Q5k4wRcZySguC8Hhw7ux2E9SCh1A==", + "version": "6.7.0", + "resolved": "https://registry.npmjs.org/@damillora/plachta/-/plachta-6.7.0.tgz", + "integrity": "sha512-Mkwz+8zUDl34/QdVF73YFnZbI50zIXYb0h2St2NAjAkZILGUgtlNuup0wftz7JyhwWUVLn1+1bwT727KC1OE/w==", "requires": { "svelte": "^5.0.0" } diff --git a/package.json b/package.json index c3473fa..c45998a 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ }, "type": "module", "dependencies": { - "@damillora/plachta": "^6.6.0", + "@damillora/plachta": "^6.7.0", "@directus/sdk": "^18.0.0" } } diff --git a/src/routes/[tag]/[slug]/+page.svelte b/src/routes/[tag]/[slug]/+page.svelte index 9a33c0a..7410419 100644 --- a/src/routes/[tag]/[slug]/+page.svelte +++ b/src/routes/[tag]/[slug]/+page.svelte @@ -9,7 +9,10 @@ PostRelated, PostCard, GhostStyle, - Notice + Notice, + + PostStyle + } from '@damillora/plachta'; import PostSeo from '$lib/components/SEO/PostSEO.svelte'; @@ -37,9 +40,9 @@ date={data.post.date_published ? dayjs(data.post.date_published).format('DD MMM YYYY') : null} /> - + {@html data.post.content} - +