Browse Source

suppress ToC, except for 30040s

master
silberengel 7 months ago
parent
commit
51d1377968
  1. 3
      src/lib/components/util/ArticleNav.svelte

3
src/lib/components/util/ArticleNav.svelte

@ -27,6 +27,7 @@
indexEvent.getMatchingTags("p")[0]?.[1] ?? null, indexEvent.getMatchingTags("p")[0]?.[1] ?? null,
); );
let isLeaf: boolean = $derived(indexEvent.kind === 30041); let isLeaf: boolean = $derived(indexEvent.kind === 30041);
let isIndexEvent: boolean = $derived(indexEvent.kind === 30040);
let lastScrollY = $state(0); let lastScrollY = $state(0);
let isVisible = $state(true); let isVisible = $state(true);
@ -140,7 +141,7 @@
<span class="hidden sm:inline">Back</span> <span class="hidden sm:inline">Back</span>
</Button> </Button>
{/if} {/if}
{#if !isLeaf} {#if isIndexEvent}
{#if publicationType === "blog"} {#if publicationType === "blog"}
<Button <Button
class={`btn-leather hidden sm:flex !w-auto ${$publicationColumnVisibility.blog ? "active" : ""}`} class={`btn-leather hidden sm:flex !w-auto ${$publicationColumnVisibility.blog ? "active" : ""}`}

Loading…
Cancel
Save