Skip to content

Commit b0b5fbd

Browse files
committed
Add content
1 parent ba46626 commit b0b5fbd

File tree

1 file changed

+25
-23
lines changed

1 file changed

+25
-23
lines changed

sites/svelte.dev/src/routes/blog/[slug]/+page.svelte

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,31 @@
2020
<meta name="og:image" content="https://svelte.dev/blog/{$page.params.slug}/card.png" />
2121
</svelte:head>
2222

23-
<article class="post listify text" use:copy_code_descendants>
24-
<h1>{data.post.title}</h1>
25-
<p class="standfirst">{data.post.description}</p>
26-
27-
<p class="byline">
28-
<a href={data.post.author.url}>{data.post.author.name}</a>
29-
<time datetime={data.post.date}>{data.post.date_formatted}</time>
30-
</p>
31-
32-
<DocsOnThisPage
33-
details={{
34-
content: '',
35-
file: '',
36-
path: `/blog/${data.post.slug}`,
37-
sections: data.post.sections,
38-
slug: data.post.slug,
39-
title: data.post.title
40-
}}
41-
orientation="inline"
42-
/>
43-
44-
{@html data.post.content}
45-
</article>
23+
<div class="content">
24+
<article class="post listify text" use:copy_code_descendants>
25+
<h1>{data.post.title}</h1>
26+
<p class="standfirst">{data.post.description}</p>
27+
28+
<p class="byline">
29+
<a href={data.post.author.url}>{data.post.author.name}</a>
30+
<time datetime={data.post.date}>{data.post.date_formatted}</time>
31+
</p>
32+
33+
<DocsOnThisPage
34+
details={{
35+
content: '',
36+
file: '',
37+
path: `/blog/${data.post.slug}`,
38+
sections: data.post.sections,
39+
slug: data.post.slug,
40+
title: data.post.title
41+
}}
42+
orientation="inline"
43+
/>
44+
45+
{@html data.post.content}
46+
</article>
47+
</div>
4648

4749
<!-- the crawler doesn't understand twitter:image etc, so we have to add this hack. TODO fix in sveltekit -->
4850
<img hidden src="/blog/{$page.params.slug}/card.png" alt="Social card for {data.post.title}" />

0 commit comments

Comments
 (0)