Skip to content

Commit 2854af5

Browse files
fix: logging for paginate-pieces.ts
1 parent be559fe commit 2854af5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build/paginate-pieces.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ const configPath = path.join(publicDir, 'config.yaml');
1414
const configRaw = fs.readFileSync(configPath, 'utf-8');
1515
const config = yaml.load(configRaw) as any;
1616

17-
const themeName = config?.theme || 'journal';
17+
const themeName = config?.ui?.theme?.preset || config?.theme || 'journal';
1818
const theme = loadTheme(themeName);
19-
const themeScale = theme?.font?.scale ?? 1;
19+
const themeScaleOverride = config?.ui?.theme?.overrides?.font?.scale;
20+
const themeScale = themeScaleOverride ?? theme?.font?.scale ?? 1;
2021

2122
const paginationConfig: PaginationConfig = {
2223
columns: config?.reader?.columns ?? 2,

0 commit comments

Comments
 (0)