webcompile/src/routes/blog/[title]/+page.svelte

18 lines
479 B
Svelte
Raw Normal View History

2022-12-27 20:58:47 +05:30
<script lang="ts">
import type { PageData } from "./$types";
export let data: PageData;
2023-01-01 13:52:26 +05:30
2023-01-03 14:17:39 +05:30
import { PostOuter, Title, Meta, PostContent } from "$lib/BlogCard";
2022-12-27 20:58:47 +05:30
</script>
2023-01-01 13:52:26 +05:30
<svelte:head>
<title>{data.post.title} | Project Segfault Blog</title>
</svelte:head>
2023-01-03 14:17:39 +05:30
<PostOuter url={data.post.url} isPost>
<div class="text-center mt-4 flex flex-col items-center gap-4">
<Title post={data.post} isPost />
<Meta post={data.post} isPost />
</div>
2023-01-01 13:52:26 +05:30
<PostContent {data} />
</PostOuter>