mirror of
https://github.com/kremalicious/portfolio.git
synced 2025-02-14 21:10:41 +01:00
33 lines
523 B
JavaScript
33 lines
523 B
JavaScript
import { useStaticQuery, graphql } from 'gatsby'
|
|
|
|
const query = graphql`
|
|
query Meta {
|
|
metaYaml {
|
|
description
|
|
img {
|
|
childImageSharp {
|
|
resize(width: 980) {
|
|
src
|
|
}
|
|
}
|
|
}
|
|
availability {
|
|
status
|
|
available
|
|
unavailable
|
|
}
|
|
gpg
|
|
addressbook
|
|
typekitID
|
|
matomoUrl
|
|
matomoSite
|
|
allowedHosts
|
|
}
|
|
}
|
|
`
|
|
|
|
export const useMeta = () => {
|
|
const { metaYaml } = useStaticQuery(query)
|
|
return metaYaml
|
|
}
|