@turnipxenon/pineapple 4.1.0 → 4.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { OverridableMeta
|
|
2
|
+
import { OverridableMeta } from "../../overrideable_meta/index";
|
|
3
|
+
import type { PageMeta } from "../../../ui/modules/NavigationMenu/PageMeta";
|
|
3
4
|
import ParsnipBlockChildren from "../ParsnipBlockChildren.svelte";
|
|
4
5
|
import type { ParsnipEntry } from "../ParsnipEntry";
|
|
5
6
|
import BlogTemplate from "../../../ui/templates/blog_template/BlogTemplate.svelte";
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
pageSize?: number;
|
|
26
26
|
currentIndex?: number;
|
|
27
27
|
parsnipOverall?: ParsnipOverall;
|
|
28
|
+
parsnipBasePath?: string;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
let {
|
|
@@ -38,7 +39,8 @@
|
|
|
38
39
|
compareFn = undefined,
|
|
39
40
|
pageSize = $bindable(5),
|
|
40
41
|
currentIndex = $bindable(0),
|
|
41
|
-
parsnipOverall = undefined
|
|
42
|
+
parsnipOverall = undefined,
|
|
43
|
+
parsnipBasePath = '',
|
|
42
44
|
}: Props = $props();
|
|
43
45
|
|
|
44
46
|
const fileBasedList = parsePageMeta(fileList, jsonList, imageMap, compareFn);
|
|
@@ -46,7 +48,7 @@
|
|
|
46
48
|
const meta: PageMeta = {
|
|
47
49
|
title: pf.basename,
|
|
48
50
|
nestedPages: [],
|
|
49
|
-
relativeLink: pf.slug
|
|
51
|
+
relativeLink: `${parsnipBasePath}${pf.slug}`,
|
|
50
52
|
tags: pf.tags,
|
|
51
53
|
imageUrl: pf.preview ? `${parsnipOverall.baseUrl}/${pf.preview}` : undefined,
|
|
52
54
|
datePublished: pf.stat.ctime ? new Date(pf.stat.ctime).toISOString().split("T")[0] : undefined,
|
|
@@ -15,6 +15,7 @@ interface Props {
|
|
|
15
15
|
pageSize?: number;
|
|
16
16
|
currentIndex?: number;
|
|
17
17
|
parsnipOverall?: ParsnipOverall;
|
|
18
|
+
parsnipBasePath?: string;
|
|
18
19
|
}
|
|
19
20
|
declare const NavigationMenu: import("svelte").Component<Props, {}, "currentIndex" | "pageSize">;
|
|
20
21
|
type NavigationMenu = ReturnType<typeof NavigationMenu>;
|
package/package.json
CHANGED