From e019d8a4d186a4bfd0a60f95bc37f038a007b2c3 Mon Sep 17 00:00:00 2001 From: Marcell Mars Date: Wed, 25 Aug 2021 03:16:16 +0200 Subject: [PATCH] no more relpermalink. calculated from relpath... --- src/App.svelte | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/App.svelte b/src/App.svelte index 4bd8e4b..4e2d67d 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -8,7 +8,6 @@ import { onMount } from "svelte"; let v = "loading..."; let relpath = ""; - let relpermalink = ""; let protocol = ""; let title = "Foo bar"; let hases = []; @@ -115,9 +114,7 @@ if (v.startsWith("\n")) { v = v.substring(1); } - relpath = repo.path; - relpermalink = repo.relpermalink; const notSelf = Object.entries(METASP).filter((n) => n[1].singular == relpath.split("/")[0])[0][0]; hases = Object.keys(METASP).filter((k) => k != notSelf); Object.entries(repo.frontmatter).forEach(([fmKey, fmValue]) => { @@ -351,8 +348,7 @@ {/if} - - +