Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
fileRelativePath: { eq: "/content/settings/site.json" }
) {
logo
title
description
author
rawJson
fileRelativePath
}
}
`)
const [nav] = useLocalJsonForm(data.nav, NavForm)
const [globalTheme] = useLocalJsonForm(data.theme, ThemeForm)
const [site] = useGlobalJsonForm(data.site, SiteForm)
const themeContext = React.useContext(ThemeContext)
const theme = themeContext.theme
const pageTitle =
page && page.title
? page.title
: page && page.frontmatter && page.frontmatter.title
? page.frontmatter.title
: ""
const pageHero = page.frontmatter ? page.frontmatter.hero : page.hero
const hero = pageHero
? merge({}, theme.hero, removeNull(pageHero))
: theme.hero
return (
<>