From 5fb613c0c0d01ccd3cf3743caf6e2f72b97606f4 Mon Sep 17 00:00:00 2001 From: Surmon Date: Sun, 30 Jul 2023 06:38:31 +0700 Subject: [PATCH] chore: NIP --- package.json | 2 +- src/app.vue | 5 +++++ src/transforms/meta.ts | 4 +++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 4219bac6..fdcf14f3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "github.surmon.me", "description": "Surmon's GitHub repositories homepage.", - "version": "2.1.0", + "version": "2.0.0", "author": "Surmon", "homepage": "https://github.surmon.me", "repository": { diff --git a/src/app.vue b/src/app.vue index f1bd527c..4954ba23 100644 --- a/src/app.vue +++ b/src/app.vue @@ -16,6 +16,11 @@ key: 'twitter-new-widgets', name: 'twitter:widgets:new-embed-design', content: 'on' + }, + { + key: 'color-scheme', + name: 'color-scheme', + content: 'light dark' } ] })) diff --git a/src/transforms/meta.ts b/src/transforms/meta.ts index 30c1fee5..b818b43e 100644 --- a/src/transforms/meta.ts +++ b/src/transforms/meta.ts @@ -38,6 +38,8 @@ export const normalizeSeoMetaObject = (i: SeoMetaObject): Parameters i.ogDescription ?? i.description ?? APP_META.description, ogUrl: () => i.ogUrl ?? '', ogImage: () => i.ogImage ?? '', - ogImageAlt: () => i.ogImageAlt ?? i.ogDescription ?? i.description ?? APP_META.description + ogImageAlt: () => i.ogImageAlt ?? i.ogDescription ?? i.description ?? APP_META.description, + ogImageWidth: () => i.ogImageWidth ?? (i.ogImage ? '' : '1200'), + ogImageHeight: () => i.ogImageHeight ?? (i.ogImage ? '' : '600') } }