site: fix page not updating bug

This commit is contained in:
Glen Huang
2025-10-06 22:02:33 +08:00
committed by Johannes Kirschbauer
parent 84ab04fc06
commit 3187ad3f5b

View File

@@ -1,13 +1,12 @@
<script lang="ts">
let { data } = $props();
let { content, toc, frontmatter } = data;
</script>
<div class="toc">
{@html toc}
{@html data.toc}
</div>
{@html content}
{JSON.stringify(frontmatter)}
{@html data.content}
{JSON.stringify(data.frontmatter)}
<style>
.toc :global(p) {