fix(theme): incorrect font-synthesis and readingTime format (#394)

This commit is contained in:
pengzhanbo 2024-12-22 00:27:38 +08:00 committed by GitHub
parent d261dc312a
commit 2557af8e01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 5 deletions

View File

@ -39,7 +39,7 @@ html {
body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-synthesis: none;
font-synthesis: style weight;
text-rendering: optimizelegibility;
-webkit-text-size-adjust: 100%;
}

View File

@ -51,9 +51,9 @@ export function getPlugins(
plugins.push(readingTimePlugin({
locales: {
'/zh/': {
word: '$word字',
less1Minute: '小于1分钟',
time: '约$time分钟',
word: '$word 字',
less1Minute: '小于 1 分钟',
time: '约 $time 分钟',
},
},
...pluginOptions.readingTime,
@ -90,7 +90,6 @@ export function getPlugins(
if (pluginOptions.photoSwipe !== false) {
plugins.push(photoSwipePlugin({
selector: '.plume-content > img, .plume-content :not(a) > img',
delay: 300,
}))
}