@gleich/ui 1.2.5 → 1.2.7
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/README.md +3 -0
- package/dist/dynamic-head.svelte +4 -2
- package/dist/dynamic-head.svelte.d.ts +1 -0
- package/dist/image.svelte +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# [ui](https://ui.mattglei.ch)
|
|
2
2
|
|
|
3
|
+
[](https://github.com/gleich/ui/actions/workflows/lint.yml)
|
|
4
|
+
[](https://github.com/gleich/ui/actions/workflows/build.yml)
|
|
5
|
+
|
|
3
6
|
shared ui components used across my personal projects
|
|
4
7
|
|
|
5
8
|
## Install
|
package/dist/dynamic-head.svelte
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
let {
|
|
5
5
|
title,
|
|
6
6
|
description,
|
|
7
|
+
siteName,
|
|
7
8
|
opengraphImage = {
|
|
8
9
|
url: 'https://mattglei.ch/opengraph.png',
|
|
9
10
|
width: '1200',
|
|
@@ -14,6 +15,7 @@
|
|
|
14
15
|
}: {
|
|
15
16
|
title: string;
|
|
16
17
|
description: string;
|
|
18
|
+
siteName: string;
|
|
17
19
|
opengraphImage?: OpenGraphImage;
|
|
18
20
|
keywords?: string[];
|
|
19
21
|
iconRoot?: string;
|
|
@@ -73,9 +75,9 @@
|
|
|
73
75
|
|
|
74
76
|
<!-- opengraph -->
|
|
75
77
|
<meta property="og:title" content={title} />
|
|
76
|
-
<meta property="og:description" content={
|
|
78
|
+
<meta property="og:description" content={description} />
|
|
77
79
|
<meta property="og:url" content={page.url.href} />
|
|
78
|
-
<meta property="og:site_name" content=
|
|
80
|
+
<meta property="og:site_name" content={siteName} />
|
|
79
81
|
<meta property="og:locale" content="en-US" />
|
|
80
82
|
<meta property="og:image" content={opengraphImage.url} />
|
|
81
83
|
<meta property="og:image:width" content={opengraphImage.width} />
|
package/dist/image.svelte
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
{alt}
|
|
34
34
|
{height}
|
|
35
35
|
{width}
|
|
36
|
-
style={`${aspectRatio ? `aspect-ratio: ${aspectRatio};` : ''} ${placeholder ? `background-image: url('${placeholder}');` : ''}`}
|
|
36
|
+
style={`${aspectRatio ? `aspect-ratio: ${aspectRatio};` : ''} ${placeholder && placeholder != '' ? `background-image: url('${placeholder}');` : ''}`}
|
|
37
37
|
/>
|
|
38
38
|
|
|
39
39
|
<style>
|