no more relpermalink. calculated from relpath...
This commit is contained in:
parent
1aaa952cce
commit
e019d8a4d1
1 changed files with 1 additions and 5 deletions
|
@ -8,7 +8,6 @@
|
||||||
import { onMount } from "svelte";
|
import { onMount } from "svelte";
|
||||||
let v = "loading...";
|
let v = "loading...";
|
||||||
let relpath = "";
|
let relpath = "";
|
||||||
let relpermalink = "";
|
|
||||||
let protocol = "";
|
let protocol = "";
|
||||||
let title = "Foo bar";
|
let title = "Foo bar";
|
||||||
let hases = [];
|
let hases = [];
|
||||||
|
@ -115,9 +114,7 @@
|
||||||
if (v.startsWith("\n")) {
|
if (v.startsWith("\n")) {
|
||||||
v = v.substring(1);
|
v = v.substring(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
relpath = repo.path;
|
relpath = repo.path;
|
||||||
relpermalink = repo.relpermalink;
|
|
||||||
const notSelf = Object.entries(METASP).filter((n) => n[1].singular == relpath.split("/")[0])[0][0];
|
const notSelf = Object.entries(METASP).filter((n) => n[1].singular == relpath.split("/")[0])[0][0];
|
||||||
hases = Object.keys(METASP).filter((k) => k != notSelf);
|
hases = Object.keys(METASP).filter((k) => k != notSelf);
|
||||||
Object.entries(repo.frontmatter).forEach(([fmKey, fmValue]) => {
|
Object.entries(repo.frontmatter).forEach(([fmKey, fmValue]) => {
|
||||||
|
@ -351,8 +348,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
<label for="offline" class="labeloffline">Offline</label>
|
<label for="offline" class="labeloffline">Offline</label>
|
||||||
<input type="checkbox" id="offline" name="offline" checked={protocol == "file" ? true : false} />
|
<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" value={protocol} />
|
||||||
<input type="hidden" name="protocol" bind:value={protocol} />
|
|
||||||
<button id="sandpointsButton">COMMIT/SAVE</button>
|
<button id="sandpointsButton">COMMIT/SAVE</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Add table
Reference in a new issue