Skip to content

Commit 63c2f82

Browse files
committed
docs: add open graph tags and improve seo
add original assets for the favicon and cover image if needed
1 parent 29d6692 commit 63c2f82

File tree

10 files changed

+38
-3
lines changed

10 files changed

+38
-3
lines changed

docs/.vitepress/config.mts

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,41 @@ const require = createRequire(import.meta.url)
66
export default defineConfig({
77
title: 'Viselect',
88
base: '/viselect/',
9-
description: 'Viselect - A high performance and lightweight library to add a visual way of selecting elements, just like on your Desktop. Zero dependencies, super small.',
9+
description: 'Viselect - A high performance and lightweight library to add a visual way of selecting elements, just like on your Desktop. Zero dependencies.',
1010
head: [
11-
['link', {rel: 'icon', href: 'favicon.png'}]
11+
12+
// SEO
13+
['meta', {name: 'keywords', content: 'viselect, select, selectbox, selectize, selectize, typescript, simonwep'}],
14+
['meta', {name: 'description', content: 'Viselect - A high performance and lightweight library to add a visual way of selecting elements, just like on your Desktop. Zero dependencies.'}],
15+
['meta', {name: 'subject', content: 'Software development'}],
16+
['meta', {name: 'topic', content: 'Software development'}],
17+
['meta', {name: 'summary', content: 'Viselect - A high performance and lightweight library to add a visual way of selecting elements, just like on your Desktop. Zero dependencies.'}],
18+
['meta', {name: 'copyright', content: 'Simon Reinisch'}],
19+
['meta', {name: 'owner', content: 'Simon Reinisch'}],
20+
['meta', {name: 'author', content: 'Simon Reinisch'}],
21+
['meta', {name: 'robots', content: 'index, follow'}],
22+
['meta', {name: 'url', content: 'https://simonwep.github.io/viselect'}],
23+
['meta', {name: 'revisit-after', content: '7 days'}],
24+
25+
// Open Graph
26+
['meta', {property: 'og:url', content: 'https://simonwep.github.io/viselect'}],
27+
['meta', {property: 'og:type', content: 'website'}],
28+
['meta', {property: 'og:site_name', content: 'Viselect'}],
29+
['meta', {property: 'og:title', content: 'Viselect'}],
30+
['meta', {property: 'og:image', content: 'https://simonwep.github.io/viselect/cover.png'}],
31+
['meta', {property: 'og:image:type', content: 'image/png'}],
32+
['meta', {property: 'og:image:height', content: '1080'}],
33+
['meta', {property: 'og:image:width', content: '1920'}],
34+
['meta', {property: 'og:image:alt', content: 'The cover of Viselect featuring the name and a subheader on a solid white background.'}],
35+
['meta', {property: 'og:description', content: 'Viselect - A high performance and lightweight library to add a visual way of selecting elements, just like on your Desktop. Zero dependencies.'}],
36+
37+
// Analytics
38+
['script', {defer: true, src: 'https://numai.reinisch.io/script.js', 'data-website-id': 'f2c623d2-5353-4dc5-acc5-d6979536958a'}],
39+
40+
// Icons
41+
['link', {rel: 'icon', href: 'favicon.ico', sizes: '32x32'}],
42+
['link', {rel: 'icon', href: 'favicon.svg', sizes: 'any', type: 'image/svg+xml'}],
43+
['link', {rel: 'apple-touch-icon', href: 'apple-touch-icon.png'}],
1244
],
1345
themeConfig: {
1446
nav: [

docs/assets/cover.psd

543 KB
Binary file not shown.

docs/assets/favicon.psd

185 KB
Binary file not shown.

docs/public/apple-touch-icon.png

7.91 KB
Loading

docs/public/cover.png

31.4 KB
Loading

docs/public/favicon.ico

20.8 KB
Binary file not shown.

docs/public/favicon.png

-7.81 KB
Binary file not shown.

docs/public/favicon.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/public/robots.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
user-agent: *
2+
disallow:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"release:major": "lerna version major",
1717
"release:minor": "lerna version minor",
1818
"release:patch": "lerna version patch",
19-
"docs:dev": "vitepress dev docs",
19+
"docs:dev": "vitepress dev docs --port 3033",
2020
"docs:build": "vitepress build docs",
2121
"docs:preview": "vitepress preview docs"
2222
},

0 commit comments

Comments
 (0)