Skip to content

Commit

Permalink
fix some blog post styles (#188)
Browse files Browse the repository at this point in the history
* fix some blog post styles

* tutorial as well
  • Loading branch information
Rich-Harris authored Sep 30, 2024
1 parent 4744f89 commit 530ace6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 3 additions & 4 deletions apps/svelte.dev/src/routes/blog/[slug]/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<script lang="ts">
import { page } from '$app/stores';
import { copy_code_descendants, ts_js_select } from '@sveltejs/site-kit/actions';
import { Text } from '@sveltejs/site-kit/components';
import { setupDocsHovers } from '@sveltejs/site-kit/docs';
let { data } = $props();
let content = $state() as HTMLElement;
setupDocsHovers();
</script>

Expand Down Expand Up @@ -39,9 +38,9 @@
<time datetime={data.date}>{data.date_formatted}</time>
</p>

<div class="content" bind:this={content}>
<Text>
{@html data.body}
</div>
</Text>
</article>
</div>

Expand Down
5 changes: 4 additions & 1 deletion apps/svelte.dev/src/routes/tutorial/[slug]/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { createEventDispatcher } from 'svelte';
import Modal from '$lib/components/Modal.svelte';
import Menu from './Menu.svelte';
import { Text } from '@sveltejs/site-kit/components';
/** @type {import('$lib/tutorial').PartStub[]} */
export let index;
Expand Down Expand Up @@ -62,7 +63,9 @@
}
}}
>
{@html exercise.html}
<Text>
{@html exercise.html}
</Text>
</div>

{#if exercise.next}
Expand Down

0 comments on commit 530ace6

Please sign in to comment.