diff --git a/.refsrc.json b/.refsrc.json index d587500..fb44ce1 100644 --- a/.refsrc.json +++ b/.refsrc.json @@ -18,6 +18,20 @@ "label": "Home", "url": "https://jaywcjlove.github.io/refs-cli" }, + "meta": [ + { + "name": "author", + "content": "jaywcjlove" + }, + { + "name": "license", + "content": "MIT" + }, + { + "name": "funding", + "content": "https://jaywcjlove.github.io/#/sponsor" + } + ], "giscus": { "src": "https://giscus.app/client.js", "data-repo": "jaywcjlove/refs-cli", diff --git a/src/utils/create.ts b/src/utils/create.ts index dc1fd6b..bd27363 100644 --- a/src/utils/create.ts +++ b/src/utils/create.ts @@ -83,7 +83,7 @@ export function create(str = '', options: Options = {}) { title: `${title ? `${title} & ` : ''} ${subTitle} ${options.config?.title || 'Quick Reference'}`, css: [...options.css], link: [{ rel: 'icon', href: favicon, type: 'image/svg+xml' }], - meta: [{ description: description }, { keywords: keywords }], + meta: [{ description: description }, { keywords: keywords }, ...(options.config?.meta || [])], }, ], ], diff --git a/src/utils/utils.ts b/src/utils/utils.ts index 52cd73a..5a6a9a7 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -24,6 +24,7 @@ export interface Config { footer?: string; license?: string; giscus?: Record; + meta?: Array>; 'data-info'?: string; search?: { label: string;