mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-18 20:55:05 +00:00
Fixed misleading comment
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<script context="module">
|
<script context="module">
|
||||||
export async function preload({ params, query }) {
|
export async function preload({ params, query }) {
|
||||||
// the `slug` parameter is available because
|
// the `slug` parameter is available because
|
||||||
// this file is called [slug].html
|
// this file is called [slug].svelte
|
||||||
const res = await this.fetch(`blog/${params.slug}.json`);
|
const res = await this.fetch(`blog/${params.slug}.json`);
|
||||||
const data = await res.json();
|
const data = await res.json();
|
||||||
|
|
||||||
@@ -61,4 +61,4 @@
|
|||||||
|
|
||||||
<div class='content'>
|
<div class='content'>
|
||||||
{@html post.html}
|
{@html post.html}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user