mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 19:51:07 +02:00
chore: add og comment and update icon naming
This commit is contained in:
parent
db1bffb4c2
commit
1444e8934c
7 changed files with 225 additions and 214 deletions
|
@ -24,18 +24,18 @@ export const { getStaticPaths, GET } = OGImageRoute({
|
|||
title: page.title,
|
||||
description: page.description,
|
||||
logo: {
|
||||
path: './public/image/Astro-Icon-Dark.png',
|
||||
size: [80],
|
||||
path: './public/image/Logo-On-OpenGraph.png', // Required local path and PNG format
|
||||
size: [70],
|
||||
},
|
||||
font: {
|
||||
title: {
|
||||
families: ['Noto Sans SC'],
|
||||
families: ['Noto Sans SC'], // or Noto Serif SC
|
||||
weight: 'Bold',
|
||||
color: [34, 33, 36],
|
||||
lineHeight: 1.5,
|
||||
},
|
||||
description: {
|
||||
families: ['Noto Sans SC'],
|
||||
families: ['Noto Sans SC'], // or Noto Serif SC
|
||||
color: [72, 71, 74],
|
||||
lineHeight: 1.5,
|
||||
},
|
||||
|
@ -43,6 +43,8 @@ export const { getStaticPaths, GET } = OGImageRoute({
|
|||
fonts: [
|
||||
'https://raw.githubusercontent.com/notofonts/noto-cjk/main/Sans/SubsetOTF/SC/NotoSansSC-Bold.otf',
|
||||
'https://raw.githubusercontent.com/notofonts/noto-cjk/main/Sans/SubsetOTF/SC/NotoSansSC-Regular.otf',
|
||||
// 'https://raw.githubusercontent.com/notofonts/noto-cjk/main/Serif/SubsetOTF/SC/NotoSerifSC-Bold.otf',
|
||||
// 'https://raw.githubusercontent.com/notofonts/noto-cjk/main/Serif/SubsetOTF/SC/NotoSerifSC-Regular.otf',
|
||||
],
|
||||
bgGradient: [[242, 241, 245]],
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue