added structure for blog posts
This commit is contained in:
27
src/routes/blog/[year]/[date]/+page.svelte
Normal file
27
src/routes/blog/[year]/[date]/+page.svelte
Normal file
@@ -0,0 +1,27 @@
|
||||
<script>
|
||||
import BannerTitleAlt from "$lib/banner-title-alt.svelte";
|
||||
import Content from "$lib/content.svelte";
|
||||
import TableOfContents from "$lib/table-of-contents.svelte";
|
||||
|
||||
export let data;
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>{data.title} | denizk0461</title>
|
||||
<meta name="description" content="{data.description}">
|
||||
</svelte:head>
|
||||
|
||||
<BannerTitleAlt
|
||||
title="{data.title}"
|
||||
date="{data.date}"
|
||||
banner="preview.webp"
|
||||
bannerAlt="{""/*data.bannerAlt*/}"
|
||||
/>
|
||||
|
||||
<Content useContentWidth>
|
||||
|
||||
<TableOfContents disableStickyScrolling />
|
||||
|
||||
<svelte:component this={data.content} />
|
||||
|
||||
</Content>
|
||||
Reference in New Issue
Block a user