mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-04-28 09:46:52 +02:00
42 lines
1.2 KiB
JavaScript
42 lines
1.2 KiB
JavaScript
import { useStaticQuery, graphql } from "gatsby";
|
|
|
|
const useSiteMetadata = () => {
|
|
const { site } = useStaticQuery(
|
|
graphql`
|
|
query {
|
|
site {
|
|
siteMetadata {
|
|
title
|
|
keywords
|
|
author
|
|
siteUrl
|
|
payPalMail
|
|
contactEmail
|
|
contactPhone
|
|
mapsLink
|
|
contactTwitter
|
|
contactGitHub
|
|
contactMastodon
|
|
contactMastodonHref
|
|
givenName
|
|
familyName
|
|
birthDate
|
|
address
|
|
gender
|
|
height
|
|
nationality
|
|
sameAs
|
|
modules {
|
|
blog
|
|
projects
|
|
donation
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`
|
|
);
|
|
return site.siteMetadata;
|
|
};
|
|
|
|
export default useSiteMetadata;
|