mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
Disable toc in non iframe preview as well
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<script lang="ts">
|
||||
import type { Snippet } from "svelte";
|
||||
import { md } from "$lib/utils";
|
||||
import { page } from "$app/stores";
|
||||
|
||||
const {
|
||||
id,
|
||||
@@ -56,7 +57,7 @@
|
||||
{#if fullPreview}
|
||||
<iframe src={previewContent} title="Preview"></iframe>
|
||||
{:else}
|
||||
{@html md(previewContent)}
|
||||
{@html md(previewContent, Object.keys($page.params).length > 1 ? true : false)}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user