diff --git a/src/App.svelte b/src/App.svelte index a88da5d..789e591 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -62,7 +62,7 @@ {:else if currentView === "/topics"} {:else if currentView.startsWith("/topic/")} - + {:else if currentView === "/formats"} {:else if currentView.startsWith("/format/")} diff --git a/src/TopicDetail.svelte b/src/TopicDetail.svelte index d77f102..a470743 100644 --- a/src/TopicDetail.svelte +++ b/src/TopicDetail.svelte @@ -7,6 +7,8 @@ import GenericCard from "./GenericCard.svelte" export let topicname; + export let alltopics; + let items = []; $: fetch(`/learn/items.json?_shape=array&topics__contains=${topicname}`) @@ -17,7 +19,7 @@ - +