Skip to content

Commit

Permalink
fix(theme): incorrect font-synthesis and readingTime format (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhanbo authored Dec 21, 2024
1 parent d261dc3 commit 2557af8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion theme/src/client/styles/normalize.css
Original file line number Diff line number Diff line change
Expand Up @@ -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%;
}
Expand Down
7 changes: 3 additions & 4 deletions theme/src/node/plugins/getPlugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
}))
}

Expand Down

0 comments on commit 2557af8

Please sign in to comment.