-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move blog header to blog page and add workaround for SSL issue
- Loading branch information
1 parent
d3c5db9
commit c2e532c
Showing
3 changed files
with
29 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
<script lang="ts"> | ||
import BlogHeader from '$lib/components/layout/header-blog.svelte'; | ||
import { PUBLIC_APP_ROOT } from '$env/static/public'; | ||
</script> | ||
|
||
<BlogHeader /> | ||
|
||
<p>{PUBLIC_APP_ROOT}</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,13 @@ | ||
<script lang="ts"> | ||
import SvelteMarkdown from 'svelte-markdown'; | ||
import { page } from '$app/stores'; | ||
import BlogHeader from '$lib/components/layout/header-blog.svelte'; | ||
/** @type {import('./$types').PageData} */ | ||
export let data: any; | ||
console.log('data', data); | ||
</script> | ||
|
||
<p>Slug: {$page.params.slug}</p> | ||
<p>Type: {typeof $page.params.slug}</p> | ||
<BlogHeader /> | ||
|
||
<p>Content: {data.content}</p> | ||
|
||
<!-- | ||
<SvelteMarkdown source={load($page.params.slug)} /> | ||
--> | ||
<SvelteMarkdown source={data.content} /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters