alltopics fix for TopicDetail

pull/5/head
Nilesh 2022-05-23 18:50:08 +01:00
rodzic 43162d6bfa
commit 76a9a9e130
2 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -62,7 +62,7 @@
{:else if currentView === "/topics"}
<TopicList {alltopics}/>
{:else if currentView.startsWith("/topic/")}
<TopicDetail topicname={currentView.split("/").slice(2).join("/")}/>
<TopicDetail topicname={currentView.split("/").slice(2).join("/")} {alltopics}/>
{:else if currentView === "/formats"}
<FormatList/>
{:else if currentView.startsWith("/format/")}

Wyświetl plik

@ -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 @@
</script>
<TopicMasonryGrid {topicname}/>
<TopicMasonryGrid {topicname} {alltopics}/>
<!-- <div class="grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-1 lg:grid-cols-2 xl:grid-cols-3">
{#each items as item}