Reinstate the back button on tutorials

This commit is contained in:
ernstmul
2024-10-31 10:45:01 +01:00
parent 8d07503221
commit 18696a1f71
2 changed files with 18 additions and 1 deletions

View File

@@ -8,6 +8,7 @@
draft?: boolean;
difficulty?: string;
readtime?: string;
back: string;
};
</script>
@@ -25,6 +26,7 @@
export let description: string;
export let step: number;
export let date: string;
export let back: string;
setContext<LayoutContext>('headings', writable({}));
@@ -76,7 +78,7 @@
<meta name="twitter:card" content="summary_large_image" />
</svelte:head>
<DocsTutorial {toc} {tutorials} {date} currentStep={step}>
<DocsTutorial {toc} {back} {tutorials} {date} currentStep={step}>
<slot />
</DocsTutorial>
<MainFooter variant="docs" />