Skip to content

Commit 4a955d4

Browse files
committed
docs: add meta or og & twitter
1 parent 7ab8d96 commit 4a955d4

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

docs/.vitepress/config.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
import { defineConfig } from "vitepress";
2+
import { name, description, ogUrl, ogImage } from "./meta";
23

34
export default defineConfig({
45
title: "feathers-hooks-common",
56
lastUpdated: true,
67
description: "",
7-
head: [["link", { rel: "icon", href: "/feathers-hooks-common-logo.png" }]],
8+
head: [
9+
["meta", { name: "theme-color", content: "#ae0bb1" }],
10+
["link", { rel: "icon", href: "/feathers-hooks-common-logo.png" }],
11+
["meta", { property: "og:title", content: name }],
12+
["meta", { property: "og:description", content: description }],
13+
["meta", { property: "og:url", content: ogUrl }],
14+
["meta", { property: "og:image", content: ogImage }],
15+
["meta", { name: "twitter:title", content: name }],
16+
["meta", { name: "twitter:description", content: description }],
17+
["meta", { name: "twitter:image", content: ogImage }],
18+
["meta", { name: "twitter:card", content: "summary_large_image" }],
19+
],
820
themeConfig: {
921
siteTitle: "feathers-hooks-common",
1022
editLink: {

docs/.vitepress/meta.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export const name = "feathers-hooks-common";
2+
export const description = "Common hooks and utils for FeathersJS apps";
3+
4+
export const ogUrl = "https://hooks-common.feathersjs.com/";
5+
export const ogImage = "https://hooks-common.feathersjs.com/feathers-hooks-common-logo.png";

docs/.vitepress/style/main.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* -------------------------------------------------------------------------- */
44

55
:root {
6-
--vp-c-accent: #dab40b;
76
--vp-c-brand: #ae0bb1;
87
--vp-c-brand-light: #bc0cbf;
98
--vp-c-brand-lighter: #c80dcb;

0 commit comments

Comments
 (0)