gatsby-theme-try-ghost
Version:
A Gatsby theme for building flaring fast blogs from headless Ghost CMS.
17 lines (13 loc) • 349 B
JavaScript
import { graphql, useStaticQuery } from "gatsby"
const useOptions = () => {
const data = useStaticQuery(graphql`
{
ghostConfig(id: { eq: "gatsby-theme-try-ghost-config" }) {
basePath
gatsbyImageLoading
gatsbyImageFadeIn
}
}`)
return data.ghostConfig
}
export default useOptions