Closed Wolfr closed 3 years ago
Those shouldn't be there, but yes, they're generated from different fragments.
Good catch btw. This is the culprit
<script>
import { components, beforeUrlChange, layout, page, url } from "@roxi/routify";
__SCRIPT__;
__IMPORTS__;
__CONSTANTS__;
__LOGIC__;
// we want smooth scrolling when navigating (hash links) within the same page
$beforeUrlChange(
(event, newRoute) => (document.documentElement.style["scrollBehavior"] = newRoute === $page ? "smooth" : "auto")
);
__FUNCTIONS__;
</script>
Obviously there shouldn't be semi colons. I better check the linters.
This has been fixed now.
I chose the scroll template. In the default _layout.svelte I found some odd code. What's with the lines only containing ';'? Is this autogenerated from something?