Skip to content

Commit

Permalink
return null when not in headles mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ComLock committed Feb 6, 2024
1 parent b61ce17 commit 43627ef
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,19 @@ export const contentMetaFieldsResolver: Resolver<
content,
site
});
const title = getFullTitle({
const appOrSiteConfig = getTheConfig({
applicationConfig: APP_CONFIG,
applicationKey: APP_NAME,
content,
site
});
const appOrSiteConfig = getTheConfig({
if (!appOrSiteConfig.headless) {
return null;
}

const title = getFullTitle({
applicationConfig: APP_CONFIG,
applicationKey: APP_NAME,
content,
site
});
const isFrontpage = site._path === _path;
Expand Down

0 comments on commit 43627ef

Please sign in to comment.