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">
|
<script lang="ts">
|
||||||
import type { Snippet } from "svelte";
|
import type { Snippet } from "svelte";
|
||||||
import { md } from "$lib/utils";
|
import { md } from "$lib/utils";
|
||||||
|
import { page } from "$app/stores";
|
||||||
|
|
||||||
const {
|
const {
|
||||||
id,
|
id,
|
||||||
@@ -56,7 +57,7 @@
|
|||||||
{#if fullPreview}
|
{#if fullPreview}
|
||||||
<iframe src={previewContent} title="Preview"></iframe>
|
<iframe src={previewContent} title="Preview"></iframe>
|
||||||
{:else}
|
{:else}
|
||||||
{@html md(previewContent)}
|
{@html md(previewContent, Object.keys($page.params).length > 1 ? true : false)}
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user