vowel 0.1.44 → 0.1.46
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.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [0.1.45](https://github.com/samlfair/vowel/compare/v0.1.44...v0.1.45) (2024-10-21)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add h-name to h1 ([ae5cc82](https://github.com/samlfair/vowel/commit/ae5cc82bf260605b49d7f0bd29762358b89f0aa4))
|
|
11
|
+
|
|
5
12
|
## [0.1.44](https://github.com/samlfair/vowel/compare/v0.1.43...v0.1.44) (2024-10-21)
|
|
6
13
|
|
|
7
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vowel",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.46",
|
|
4
4
|
"homepage": "https://vowel.cc",
|
|
5
5
|
"author": "Sam Littlefair (https://littlefair.ca)",
|
|
6
6
|
"repository": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"url": "ssh://git@github.com/samlfair/vowel.git"
|
|
9
9
|
},
|
|
10
10
|
"engines": {
|
|
11
|
-
"node": "
|
|
11
|
+
"node": ">20.0.0"
|
|
12
12
|
},
|
|
13
13
|
"bin": "./bin.js",
|
|
14
14
|
"scripts": {
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@picocss/pico": "^1.5.10",
|
|
29
29
|
"@sveltejs/adapter-auto": "^3.0.0",
|
|
30
|
-
"@sveltejs/adapter-static": "^3.0.
|
|
31
|
-
"@sveltejs/kit": "^2.
|
|
32
|
-
"@sveltejs/vite-plugin-svelte": "^4.0.0
|
|
30
|
+
"@sveltejs/adapter-static": "^3.0.5",
|
|
31
|
+
"@sveltejs/kit": "^2.7.2",
|
|
32
|
+
"@sveltejs/vite-plugin-svelte": "^4.0.0",
|
|
33
33
|
"any-date-parser": "^1.5.4",
|
|
34
34
|
"change-case": "^5.4.1",
|
|
35
35
|
"commit-and-tag-version": "^12.4.4",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"remark-parse": "^11.0.0",
|
|
55
55
|
"remark-rehype": "^11.1.0",
|
|
56
56
|
"spectre.css": "^0.5.9",
|
|
57
|
-
"svelte": "^5.0.
|
|
57
|
+
"svelte": "^5.0.4",
|
|
58
58
|
"typescript": "^5.0.0",
|
|
59
59
|
"unified": "^11.0.4",
|
|
60
60
|
"url-metadata": "^3.4.9",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
<!-- Title -->
|
|
30
30
|
{#if title}
|
|
31
31
|
{#if link && page.url}
|
|
32
|
-
<h1
|
|
32
|
+
<h1>
|
|
33
33
|
<a href={page.url}>
|
|
34
34
|
{page.imputedProperties.title || title || page.imputedProperties?.fileName}
|
|
35
35
|
</a>
|
|
36
36
|
</h1>
|
|
37
37
|
{:else}
|
|
38
|
-
<h1>{page.imputedProperties.title || title || page.imputedProperties?.fileName}</h1>
|
|
38
|
+
<h1 class="p-name">{page.imputedProperties.title || title || page.imputedProperties?.fileName}</h1>
|
|
39
39
|
{/if}
|
|
40
40
|
{/if}
|
|
41
41
|
|
|
@@ -35,8 +35,7 @@ export async function GET() {
|
|
|
35
35
|
// Get published articles from live site
|
|
36
36
|
const publishedData = await getPublishedData(settings.frontmatter.domain)
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
if (true) {
|
|
38
|
+
if($publish[0]) {
|
|
40
39
|
const initialCache = await loadCache($home[0]);
|
|
41
40
|
|
|
42
41
|
|
|
@@ -2,10 +2,20 @@ import { getPagesByFolder, processMarkdownFiles, loadCache } from '../../lib/uti
|
|
|
2
2
|
|
|
3
3
|
export const prerender = true;
|
|
4
4
|
|
|
5
|
+
function createURL(domain, path) {
|
|
6
|
+
try {
|
|
7
|
+
return new URL(path, domain)
|
|
8
|
+
} catch(e) {
|
|
9
|
+
console.error(e)
|
|
10
|
+
return ""
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
5
14
|
/** @type {import('./$types').PageLoad} */
|
|
6
15
|
export async function load({ params, parent }) {
|
|
7
16
|
const { website } = await parent()
|
|
8
|
-
const url =
|
|
17
|
+
const url =createURL(website._.domain, params.path)
|
|
18
|
+
// const url = new URL(params.path, website._.domain)
|
|
9
19
|
|
|
10
20
|
const webmentionTarget = params.path === "" ? url.origin : url.href
|
|
11
21
|
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
<link rel="webmention" href={createWebmentionURL()} />
|
|
147
147
|
{/if}
|
|
148
148
|
{#if page.hasOwnProperty('image') || page.imputedProperties?.hasOwnProperty('image')}
|
|
149
|
-
<meta property="og:image" content={page.image || page.imputedProperties.image} />
|
|
149
|
+
<meta property="og:image" content={page.image.output || page.imputedProperties.image} />
|
|
150
150
|
{/if}
|
|
151
151
|
</svelte:head>
|
|
152
152
|
|