This commit is contained in:
neil 2022-12-21 12:26:30 +08:00
parent d297ce3865
commit 94e4a77fc2

View file

@ -7,14 +7,14 @@
import { backLink as backLinkStore } from '$libs/stores'; import { backLink as backLinkStore } from '$libs/stores';
let view:HTMLElement; let view: HTMLElement;
let backLink = ''; let backLink = '';
backLinkStore.subscribe((v) => { backLinkStore.subscribe((v) => {
backLink = v; backLink = v;
}); });
$: if($navigating) view.scrollTop = 0; $: if ($navigating) view.scrollTop = 0;
</script> </script>
<div id="main-layout"> <div id="main-layout">
@ -29,7 +29,7 @@
{/if} {/if}
<figure /> <figure />
<div class="content" > <div class="content">
<!-- all pages get inserted in this slot --> <!-- all pages get inserted in this slot -->
<slot /> <slot />
</div> </div>