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"> <script lang="ts">
let { data } = $props(); let { data } = $props();
let { content, toc, frontmatter } = data;
</script> </script>
<div class="toc"> <div class="toc">
{@html toc} {@html data.toc}
</div> </div>
{@html content} {@html data.content}
{JSON.stringify(frontmatter)} {JSON.stringify(data.frontmatter)}
<style> <style>
.toc :global(p) { .toc :global(p) {