vowel 0.1.33 → 0.1.34
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 +7 -0
- package/package.json +3 -2
- package/src/routes/[...path]/+page.svelte +19 -0
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.34](https://github.com/samlfair/vowel/compare/v0.1.33...v0.1.34) (2024-10-16)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add webmention and github links to header ([114d9b4](https://github.com/samlfair/vowel/commit/114d9b455211957cac361825d1da8017e3afb45f))
|
|
11
|
+
|
|
5
12
|
## 0.1.33 (2024-10-14)
|
|
6
13
|
|
|
7
14
|
# Changelog
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vowel",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.34",
|
|
4
4
|
"homepage": "https://vowel.cc",
|
|
5
5
|
"author": "Sam Littlefair (https://littlefair.ca)",
|
|
6
6
|
"repository": {
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"dev": "vite dev",
|
|
16
16
|
"build": "vite build",
|
|
17
17
|
"preview": "vite preview",
|
|
18
|
-
"release": "commit-and-tag-version",
|
|
18
|
+
"release": "commit-and-tag-version && git push --follow-tags && npm publish",
|
|
19
|
+
"release:dry": "commit-and-tag-version --dry-run",
|
|
19
20
|
"release:beta": "commit-and-tag-version ---prerelease beta",
|
|
20
21
|
"check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json",
|
|
21
22
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch",
|
|
@@ -106,6 +106,19 @@
|
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
|
+
|
|
110
|
+
function createWebmentionURL() {
|
|
111
|
+
try {
|
|
112
|
+
if(website._.domain) {
|
|
113
|
+
const domain = new URL(website._.domain)
|
|
114
|
+
return `https://webmention.io/${domain.host}/webmention`
|
|
115
|
+
}
|
|
116
|
+
return undefined
|
|
117
|
+
} catch(error) {
|
|
118
|
+
console.warn(error)
|
|
119
|
+
return undefined
|
|
120
|
+
}
|
|
121
|
+
}
|
|
109
122
|
</script>
|
|
110
123
|
|
|
111
124
|
<svelte:component this={themes[theme || 'default']} />
|
|
@@ -126,6 +139,12 @@
|
|
|
126
139
|
{#if !data.dev && data.files.css.exists}
|
|
127
140
|
<link rel="stylesheet" href="/styles.css" />
|
|
128
141
|
{/if}
|
|
142
|
+
{#if website._.github}
|
|
143
|
+
<link href={`https://github.com/${website._.github}`} rel="me">
|
|
144
|
+
{/if}
|
|
145
|
+
{#if website._.webmentions && website._.domain}
|
|
146
|
+
<link rel="webmention" href={createWebmentionURL()} />
|
|
147
|
+
{/if}
|
|
129
148
|
{#if page.hasOwnProperty('image') || page.imputedProperties?.hasOwnProperty('image')}
|
|
130
149
|
<meta property="og:image" content={page.image || page.imputedProperties.image} />
|
|
131
150
|
{/if}
|