From 33c3bd30d8ba8812bd56c2c43661790a20fa2d2c Mon Sep 17 00:00:00 2001 From: moris Date: Sun, 1 Dec 2024 00:22:25 +0900 Subject: [PATCH] =?UTF-8?q?add:=20=E6=9C=80=E6=96=B0=E6=8A=95=E7=A8=BF?= =?UTF-8?q?=E3=81=B8=E3=81=AE=E3=83=AA=E3=83=80=E3=82=A4=E3=83=AC=E3=82=AF?= =?UTF-8?q?=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/(DefaultStyle)/post/+page.server.js | 9 +++++++++ src/routes/(DefaultStyle)/post/+page.svelte | 7 +++++++ 2 files changed, 16 insertions(+) create mode 100644 src/routes/(DefaultStyle)/post/+page.server.js create mode 100644 src/routes/(DefaultStyle)/post/+page.svelte diff --git a/src/routes/(DefaultStyle)/post/+page.server.js b/src/routes/(DefaultStyle)/post/+page.server.js new file mode 100644 index 0000000..990ac9b --- /dev/null +++ b/src/routes/(DefaultStyle)/post/+page.server.js @@ -0,0 +1,9 @@ +import Metas from '$lib/server/Metadatas'; + +export async function load(){ + const postList = await Metas() + + let id = postList[0].postId + + return {id} +} \ No newline at end of file diff --git a/src/routes/(DefaultStyle)/post/+page.svelte b/src/routes/(DefaultStyle)/post/+page.svelte new file mode 100644 index 0000000..7490bd1 --- /dev/null +++ b/src/routes/(DefaultStyle)/post/+page.svelte @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file