add: 最新投稿へのリダイレクト

This commit is contained in:
moris 2024-12-01 00:22:25 +09:00
parent 8984d31893
commit 33c3bd30d8
2 changed files with 16 additions and 0 deletions

View File

@ -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}
}

View File

@ -0,0 +1,7 @@
<script>
const { data } = $props();
</script>
<svelte:head>
<meta http-equiv="Refresh" content="0; URL={data.id}" />
</svelte:head>