no more relpermalink. calculated from relpath...

master
Marcell Mars 3 years ago
parent 1aaa952cce
commit e019d8a4d1

@ -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}
<label for="offline" class="labeloffline">Offline</label>
<input type="checkbox" id="offline" name="offline" checked={protocol == "file" ? true : false} />
<input type="hidden" name="relpermalink" bind:value={relpermalink} />
<input type="hidden" name="protocol" bind:value={protocol} />
<input type="hidden" name="protocol" value={protocol} />
<button id="sandpointsButton">COMMIT/SAVE</button>
</div>
</form>

Loading…
Cancel
Save