Skip to content

Commit 713baa2

Browse files
committed
refactor: remove unused imports and simplify component structure in article layout
1 parent e502673 commit 713baa2

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

src/lib/assets/mdlayouts/article.svelte

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,9 @@
11

22
<script lang="ts">
3-
// import SectionWrapper from '$lib/components/SectionWrapper.svelte';
4-
import Header from '$lib/components/Header.svelte' ;
5-
import HeaderTitle from '$lib/components/HeaderTitle.svelte';
6-
73
export let children: () => any;
8-
// This object now maps both custom tags to their Svelte components.
9-
const components = {
10-
// 'section-wrapper': SectionWrapper,
11-
'header-component': Header,
12-
'header-title': HeaderTitle,
13-
};
14-
</script>
15-
<slot {components} />
164
5+
</script>
6+
{@render children?.()}
177
<style>
188
199

0 commit comments

Comments
 (0)