@turnipxenon/pineapple 4.2.0 → 4.2.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,30 +1,30 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { OverridableMeta } from "../../overrideable_meta/index";
|
|
3
|
-
import type { PageMeta } from "../../../ui/modules/NavigationMenu/PageMeta";
|
|
4
|
-
import { getCmsBaseUrl } from "../../../util/env-getter";
|
|
5
|
-
import ParsnipBlockChildren from "../ParsnipBlockChildren.svelte";
|
|
6
|
-
import type { ParsnipEntry } from "../ParsnipEntry";
|
|
7
|
-
import BlogTemplate from "../../../ui/templates/blog_template/BlogTemplate.svelte";
|
|
8
|
-
|
|
9
|
-
const { parsnipEntry }: { parsnipEntry: ParsnipEntry } = $props();
|
|
10
|
-
|
|
11
|
-
const pageMeta: PageMeta = $derived({
|
|
12
|
-
nestedPages: [],
|
|
13
|
-
relativeLink: "",
|
|
14
|
-
tags: parsnipEntry.tags,
|
|
15
|
-
title: parsnipEntry.basename,
|
|
16
|
-
datePublished: new Date(parsnipEntry.stat.ctime).toLocaleString(),
|
|
17
|
-
lastUpdated: new Date(parsnipEntry.stat.mtime).toLocaleString()
|
|
18
|
-
});
|
|
19
|
-
</script>
|
|
20
|
-
|
|
21
|
-
<OverridableMeta
|
|
22
|
-
title={parsnipEntry.basename}
|
|
23
|
-
ogTitle={parsnipEntry.basename}
|
|
24
|
-
ogDescription={parsnipEntry.tagline}
|
|
25
|
-
ogImage={[`${getCmsBaseUrl()}/${parsnipEntry.preview}`]}
|
|
26
|
-
/>
|
|
27
|
-
|
|
28
|
-
<BlogTemplate pageMeta={pageMeta}>
|
|
29
|
-
<ParsnipBlockChildren blockChildren={parsnipEntry.ast.ast.children} />
|
|
30
|
-
</BlogTemplate>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { OverridableMeta } from "../../overrideable_meta/index";
|
|
3
|
+
import type { PageMeta } from "../../../ui/modules/NavigationMenu/PageMeta";
|
|
4
|
+
import { getCmsBaseUrl } from "../../../util/env-getter";
|
|
5
|
+
import ParsnipBlockChildren from "../ParsnipBlockChildren.svelte";
|
|
6
|
+
import type { ParsnipEntry } from "../ParsnipEntry";
|
|
7
|
+
import BlogTemplate from "../../../ui/templates/blog_template/BlogTemplate.svelte";
|
|
8
|
+
|
|
9
|
+
const { parsnipEntry }: { parsnipEntry: ParsnipEntry } = $props();
|
|
10
|
+
|
|
11
|
+
const pageMeta: PageMeta = $derived({
|
|
12
|
+
nestedPages: [],
|
|
13
|
+
relativeLink: "",
|
|
14
|
+
tags: parsnipEntry.tags,
|
|
15
|
+
title: parsnipEntry.basename,
|
|
16
|
+
datePublished: new Date(parsnipEntry.stat.ctime).toLocaleString(),
|
|
17
|
+
lastUpdated: new Date(parsnipEntry.stat.mtime).toLocaleString()
|
|
18
|
+
});
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<OverridableMeta
|
|
22
|
+
title={parsnipEntry.basename}
|
|
23
|
+
ogTitle={parsnipEntry.basename}
|
|
24
|
+
ogDescription={parsnipEntry.tagline}
|
|
25
|
+
ogImage={[`${getCmsBaseUrl()}/${parsnipEntry.preview}`]}
|
|
26
|
+
/>
|
|
27
|
+
|
|
28
|
+
<BlogTemplate pageMeta={pageMeta}>
|
|
29
|
+
<ParsnipBlockChildren blockChildren={parsnipEntry.ast.ast.children} />
|
|
30
|
+
</BlogTemplate>
|
|
@@ -18,10 +18,16 @@
|
|
|
18
18
|
<meta charset="utf-8" />
|
|
19
19
|
<title>{pinyaHead.title}</title>
|
|
20
20
|
<meta property="og:url" content={ogUrl} />
|
|
21
|
+
<meta property="og:site_name" content={pinyaHead.ogTitle} />
|
|
21
22
|
<meta property="og:title" content={pinyaHead.ogTitle} />
|
|
23
|
+
<meta property="twitter:title" content={pinyaHead.ogTitle} />
|
|
24
|
+
<meta property="description" content={pinyaHead.ogDescription} />
|
|
22
25
|
<meta property="og:description" content={pinyaHead.ogDescription} />
|
|
26
|
+
<meta property="twitter:description" content={pinyaHead.ogDescription} />
|
|
27
|
+
<meta property="twitter:card" content="summary">
|
|
23
28
|
{#each pinyaHead.ogImage ?? [] as imgUrl, idx (`${idx}_${imgUrl}`)}
|
|
24
29
|
<meta property="og:image" content={imgUrl} />
|
|
30
|
+
<meta property="twitter:image" content={imgUrl} />
|
|
25
31
|
{/each}
|
|
26
32
|
</svelte:head>
|
|
27
33
|
|
package/package.json
CHANGED