Skip to content

Commit

Permalink
handle pagesTheme
Browse files Browse the repository at this point in the history
  • Loading branch information
asanehisa committed Dec 9, 2024
1 parent eb94cee commit 7f6648a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/applyTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export const applyTheme = (
): string => {
devLogger.logFunc("applyTheme");

const savedThemes: Record<string, any>[] = document?._site?.pagesTheme;
const savedThemes: Record<string, any>[] =
document?._customDataOverrides?.pagesTheme;

let savedTheme;
if (savedThemes?.length > 0) {
Expand Down

0 comments on commit 7f6648a

Please sign in to comment.