mirror of
https://github.com/JonasunderscoreJones/blog.jonasjones.dev.git
synced 2025-10-22 21:29:18 +02:00
cleaned up code
This commit is contained in:
parent
4c86ca9db7
commit
590e2e92cc
1 changed files with 8 additions and 7 deletions
|
@ -1,8 +1,8 @@
|
|||
<script lang="ts">
|
||||
import { onMount } from "svelte";
|
||||
import { marked } from 'marked';
|
||||
import Loading from './Loading.svelte';
|
||||
import NotFound from "./NotFound.svelte";
|
||||
import Loading from '../components/Loading.svelte';
|
||||
import NotFound from "./Error.svelte";
|
||||
import navigate from 'svelte-spa-router';
|
||||
|
||||
export let params: {year: string, month: string, day: string, title: string} = {
|
||||
|
@ -94,6 +94,7 @@
|
|||
while (true) {
|
||||
if (thisHref != location.href) {
|
||||
location.reload()
|
||||
console.log("reloading")
|
||||
}
|
||||
await new Promise(resolve => setTimeout(resolve, 1000));
|
||||
}
|
||||
|
@ -133,11 +134,11 @@ function copyLink() {
|
|||
</script>
|
||||
{#if loading}
|
||||
<Loading />
|
||||
{/if}
|
||||
|
||||
{:else}
|
||||
{#if error404}
|
||||
<NotFound />
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
<div class="post">
|
||||
<p class="postHead">by</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue