Skip to content

Commit

Permalink
chore: NIP
Browse files Browse the repository at this point in the history
  • Loading branch information
surmon-china committed Jul 29, 2023
1 parent 443950c commit 5fb613c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
5 changes: 5 additions & 0 deletions src/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
]
}))
Expand Down
4 changes: 3 additions & 1 deletion src/transforms/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ export const normalizeSeoMetaObject = (i: SeoMetaObject): Parameters<typeof useS
ogDescription: () => 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')
}
}

0 comments on commit 5fb613c

Please sign in to comment.