docs: update comments in theme guides and configuration files

This commit is contained in:
radishzzz 2025-05-08 02:32:12 +01:00
parent bf20fb4014
commit b72b59358b
9 changed files with 83 additions and 165 deletions

View file

@ -81,6 +81,7 @@ global: {
// 字體樣式
fontStyle: 'sans' // sans, serif
// 文章日期格式
// 2025-04-13, 04-13-2025, 13-04-2025, Mar 13 202513 Mar 2025
dateFormat: 'YYYY-MM-DD' // YYYY-MM-DD, MM-DD-YYYY, DD-MM-YYYY, MONTH DAY YYYY, DAY MONTH YYYY
// 啟用 KaTeX 數學公式渲染
katex: true // true, false
@ -253,8 +254,8 @@ getImageOptions: (_path, page) => ({
},
},
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://cdn.jsdelivr.net/gh/notofonts/noto-cjk@main/Sans/SubsetOTF/SC/NotoSansSC-Bold.otf',
'https://cdn.jsdelivr.net/gh/notofonts/noto-cjk@main/Sans/SubsetOTF/SC/NotoSansSC-Regular.otf',
],
bgGradient: [[242, 241, 245]], // 背景色
// 更多配置https://github.com/delucis/astro-og-canvas/tree/latest/packages/astro-og-canvas